Hi, everyone,
I just tried upgrading my bare workflow app to React Native 0.65.0 and now have a problem. The app builds fine but when running, I see a red error screen on the iOS Simulator (content below) and in the console, the following message:
No native splash screen registered for given view controller. Call 'SplashScreen.show' for given view controller first.
Here’s the information in the red error screen in the Simulator:
Exception '-[RCTModuleRegistry getAllExportedModules]: unrecognized selector sent to instance 0x600000854840' was thrown while invoking addProxiedListener on target UMReactNativeEventEmitter with params (
ExpoNotificationsHandlerModule,
onHandleNotification
)
callstack: (
0 CoreFoundation 0x00007fff20422fba __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007fff20193ff5 objc_exception_throw + 48
2 CoreFoundation 0x00007fff20431d2f +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00007fff204274cf ___forwarding___ + 1455
4 CoreFoundation 0x00007fff204297a8 _CF_forwarding_prep_0 + 120
5 AppName 0x0000000101b35d05 __copy_helper_block_e8_32s40s48s56b64b72s + 9734
6 AppName 0x0000000101516705 -[RCTEventEmitter addListener:] + 85
7 AppName 0x0000000101b35f04 __copy_helper_block_e8_32s40s48s56b64b72s + 10245
8 CoreFoundation 0x00007fff20429a3c __invoking___ + 140
9 CoreFoundation 0x00007fff20426c6f -[NSInvocation invoke] + 305
10 CoreFoundation 0x00007fff20426f02 -[NSInvocation invokeWithTarget:] + 70
11 AppName 0x00000001015581b4 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 2660
12 AppName 0x000000010155cc57 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicEiN12_GLOBAL__N_117SchedulingContextE + 1495
13 AppName 0x000000010155c462 _ZZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEiENK3$_0clEv + 178
14 AppName 0x000000010155c39c ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 28
15 libdispatch.dylib 0x00007fff2010670d _dispatch_call_block_and_release + 12
16 libdispatch.dylib 0x00007fff201078df _dispatch_client_callout + 8
17 libdispatch.dylib 0x00007fff2010de15 _dispatch_lane_serial_drain + 715
18 libdispatch.dylib 0x00007fff2010e98c _dispatch_lane_invoke + 400
19 libdispatch.dylib 0x00007fff20118f81 _dispatch_workloop_worker_thread + 772
20 libsystem_pthread.dylib 0x00007fff6034045d _pthread_wqthread + 314
21 libsystem_pthread.dylib 0x00007fff6033f42f start_wqthread + 15
)
RCTFatal
facebook::react::invokeInner(RCTBridge*, RCTModuleData*, unsigned int, folly::dynamic const&, int, (anonymous namespace)::SchedulingContext)
facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)::$_0::operator()() const
invocation function for block in facebook::react::RCTNativeModule::invoke(unsigned int, folly::dynamic&&, int)
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_lane_serial_drain
_dispatch_lane_invoke
_dispatch_workloop_worker_thread
_pthread_wqthread
start_wqthread
For context, I’m using the AppLoading
component as follows. Before this RN 0.65.0 upgrade, I was having no problems and the splash screen was working as expected.
App.tsx
// ...
async function _cacheResourcesAsync() {
await Font.loadAsync({
Poppins_300Light,
Poppins_400Regular,
// ...
})
}
if (!appIsReady || state.isLoading) {
return (
<AppLoading
startAsync={_cacheResourcesAsync}
onFinish={() => setAppIsReady(true)}
onError={(error) => Sentry.Native.captureException(error)}
/>
)
}
return {
// ...
}
I’ve tried clearing everything — node_modules, yarn cache, bundler cache, pods, etc. — and still have this issue. I’m hoping that there’s something Expo-related that maybe needs upgrading for the just-released RN 0.65.0 but I’m not sure. If there’s anything else I can share that may help, please let me know and I’d be happy to do so.
Thanks in advance.