Bhupinder Singh
Bhupinder Singh

Reputation: 61

Getting error with react-navigation-stack

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

Upvotes: 1

Views: 1225

Answers (2)

Naveen Saini
Naveen Saini

Reputation: 151

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

Upvotes: 2

satya164
satya164

Reputation: 10162

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?

Upvotes: 1

Related Questions