React-native-navigation: [RNNSplashScreen tabBar]: unrecognized selector sent to instance 0x7fe55ec00c60

Created on 15 Feb 2019  ·  10Comments  ·  Source: wix/react-native-navigation

Issue Description

I got this error after upgrading to v2.11.0. I'm using react-native-splash-screen package. Everything works fine on Android, but on iOs it throws error [RNNSplashScreen tabBar]: unrecognized selector sent to instance 0x7fe55ec00c60 after splash screen disappear. It only happens if I disable the remote JS debugger.


Environment

  • React Native Navigation version: 2.11.0
  • React Native version: 0.58.1
  • Platform(s) (iOS, Android, or both?): iOs
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator Debug
iOS acceptebug 🏚 stale

Most helpful comment

Not stale. Reopen please.

All 10 comments

I had a similar error--mine was that I was calling Navigation.constants() in a file before the splash screen was being dismissed. Hopefully that can help!

@lumenlunae Thanks. I had the same problem!

@lumenlunae Thanks. Can confirm. Removed the Navigation.constants(), it works now.

We are having some issue :/

We experience a similar issue. Fixed it by moving Navigation.constants() to after setRoot of a Tabbar. Since we need the constant in the tabbar though we have rare occurances of crashed based one timing. Is there any other workaround that allows calling constants() without fear of fatal crash?

Reproductible in 2.12.0

Indeed if i await Navigation.setRoot() then await Navigation.constants() i don't get this error.
But i get the following since i'm using a sideMenu in my setRoot()

screenshot 2019-02-28 at 17 41 53

The error go away only if i'm not using Navigation.constants()...

Removing react-native-splash-screen doesn't change anything

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.

The issue has been closed for inactivity.

Not stale. Reopen please.

Was this page helpful?
0 / 5 - 0 ratings