1

I am using react-navigation and react-navigation-stack in my code. Done everything as told in the react-navigation documentation. Still getting this error. You can see the code and the error in the screenshot below. Any help will be appreciated. Thanks

1
  • Hello Bhupinder and welcome to Stack Overflow! Can you put your code and your error message as a code snippet, rather than an image? It will help people find it by searching and - more importantly for you in the short term - will be more easily seen by potential answerers, since they can see it directly without clicking on the link. Commented Jan 2, 2020 at 23:18

2 Answers 2

2

You also need to install @react-native-community/masked-view. Because it is used by react-navigation-stack.

Use following command to install both :-

npm install react-navigation-stack @react-native-community/masked-view
Sign up to request clarification or add additional context in comments.

Comments

1

This is the command in the documentation:

yarn add react-navigation-stack @react-native-community/masked-view

Are you sure you have used this command and installed @react-native-community/masked-view?

1 Comment

Installing @react-native-community solved it. Thanks for the help

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.