1

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
)
2
  • Insert your code. Commented Jan 18, 2021 at 10:43
  • Did you try @Alvaro Roman 's answer? Commented Sep 23, 2021 at 19:18

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.