Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to resolve "@react-native-community/masked-view

I am using react native expo version 37.0.3 and every time I run the app I am getting this error`

Unable to resolve "@react-native-community/masked-view" from "node_modules\@react-navigation\stack\src\views\MaskedView.native.tsx"

Building JavaScript bundle: error`

I don't have any idea why this error is coming

Here is the screenshot of error on my mobile screen

like image 379
Raghu Avatar asked Apr 13 '20 12:04

Raghu


2 Answers

You haven't followed the installation instructions for React Navigation.

Since you're using Expo, you should run

expo install react-native-gesture-handler react-native-reanimated react-native-screens react-native-safe-area-context @react-native-community/masked-view

, as per the getting started docs.

like image 164
Ben Butterworth Avatar answered Sep 16 '22 16:09

Ben Butterworth


The @react-native-community/masked-view is a dependency you need to install to work with the the navigation stack.

Try doing:

expo install @react-native-community/masked-view
like image 31
Daniel Don Avatar answered Sep 20 '22 16:09

Daniel Don