57c1a7add2
Summary: `setupDevtools.js` is accessing `AppState.currentState` without checking its availability. In environments where 1) `__DEV__ == true`, and 2) no `RCTAppState` native module is provided thus resorting to `MissingNativeAppStateShim`, this will result in an exception: ```Cannot use 'AppState' module when native 'RCTAppState' is not included in the build. Either include it, or check 'AppState'.isAvailable before calling any methods.``` (Interestingly, `MissingNativeAppStateShim.currentState` did have a [default `null` value]( |
||
---|---|---|
.. | ||
__mocks__ | ||
NativeEventEmitter.js | ||
RCTDeviceEventEmitter.js | ||
RCTEventEmitter.js | ||
RCTNativeAppEventEmitter.js |