Akhil S
Akhil S

Reputation: 145

ReferenceError: React is not defined wix navigation react-native

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

Answers (1)

Alvaro Roman
Alvaro Roman

Reputation: 56

Just add import React from 'react' at the top! That did it for me.

Upvotes: 1

Related Questions