Strange errors like below happened while trying to integrate with react-navigation v6:
Invariant Violation: Calling synchronous methods on native modules is not supported in Chrome.
Consider providing alternative methods to expose this method in debug mode, e.g. by exposing constants ahead-of-time.
Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect.
This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.
So basically I was trying to overwrite the default instance of createNativeStackNavigator() from their end, change the default native header back button to customized one, don't know how much related to this nice lib but still want to note the solution for the future readers.
Strange errors like below happened while trying to integrate with
react-navigation
v6:by this implementation:
So basically I was trying to overwrite the default instance of
createNativeStackNavigator()
from their end, change the default native header back button to customized one, don't know how much related to this nice lib but still want to note the solution for the future readers.