Skip to content Skip to sidebar Skip to footer

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-

Solution 1:

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.

Solution 2:

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

Solution 3:

For react native CLI users, try following

  1. npx react-native start --reset-cache
  2. Try deleting node_modules, package-lock.json/yarn.lock and reinstalling packages again

Solution 4:

Sometimes local cache and node modules will still cause errors while installing new library. Then you can follow below commands in series in project folder:

rm -rf node_modules
npm cache clear--force
npm i
expo install @react-native-community/masked-view 

Note : also force stop expo app could be better

Post a Comment for "Unable To Resolve "@react-native-community/masked-view"