title: React native: TypeError: null is not an object (evaluating 'SplashScreen.preventAutoHide')
body: <p>My react native app was working just fine before I used <code>expo eject</code>. I ejected it because I now intend to build and release the app to the ios app store. As soon as I attempt to start the ejected app using <code>react-native run-ios</code> after it's been ejected I get the exception below.</p>
  
  <p>Please could someone help to understand what's causing this issue and how to tackle it?</p>
  
  <p>react Native versions as follows:</p>
  
  <pre><code>react-native-cli: 2.0.1
  react-native: 0.61.5
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/s1vOO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/s1vOO.png" alt="enter image description here"></a></p>
  
  <pre><code>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
  </code></pre>