【发布时间】:2020-07-18 21:07:45
【问题描述】:
在我使用 expo eject 之前,我的 react native 应用运行良好。我将其弹出是因为我现在打算构建该应用并将其发布到 ios 应用商店。一旦我在被弹出后尝试使用react-native run-ios 启动被弹出的应用程序,我就会得到以下异常。
请有人帮助了解导致此问题的原因以及如何解决它?
React Native 版本如下:
react-native-cli: 2.0.1
react-native: 0.61.5
TypeError: null is not an object (evaluating 'SplashScreen.preventAutoHide')
This error is located at:
in AppLoading (at AppLoading.js:52)
in AppLoading (at App.js:464)
in App (at renderApplication.js:40)
in RCTView (at AppContainer.js:101)
in RCTView (at AppContainer.js:119)
in AppContainer (at renderApplication.js:39)
preventAutoHide
SplashScreen.js:4:21
AppLoading#constructor
AppLoadingNativeWrapper.js:6:8
renderRoot
[native code]:0
runRootCallback
[native code]:0
renderApplication
renderApplication.js:52:52
runnables.appKey.run
AppRegistry.js:116:10
runApplication
AppRegistry.js:197:26
callFunctionReturnFlushedQueue
[native code]:0
【问题讨论】:
-
现在Expo Github repo中也提出了这个问题:github.com/expo/expo/issues/7740
标签: ios react-native expo