我最近升級到RN 0.20,當我嘗試加載我的應用我現在有以下拋出的異常:陣營Android本地:screenPhysicalPixels.width未定義
undefined is not an object (evaluating 'screenPhyisicalPixels.width')
<unknown>
index.android.bundle?platform=android& def=true:32950
requireImpl
index.android.bundle?platform=android& def=true:76
_require
index.android.bundle?platform=android& def=true:36
這顯然會導致JS錯誤以下文件:
node_modules/react-native/Libraries/Utilities/Dimensions.js at line 30
有關信息,我不使用的Dimensions API在我的應用程序。
對此有何建議?