Reputation: 145
When trying to register a screen wrapped with providers in wix react-native-navigation it shows React is not defined in chrome console and the screen dosent load it stays white. I am using RN 0.63.4 and RNN 7.8.3
Navigation.registerComponent(
Screens.Login,
() => (props) => (
<Provider store={store}>
<Login {...props} />
</Provider>
),
() => Login
)
Upvotes: 1
Views: 356
Reputation: 56
Just add import React from 'react'
at the top! That did it for me.
Upvotes: 1