Unable to resolve "react-native/Libraries/Components/View/ViewStylePropTypes"

Getting the error below when installed "import MapView from ‘react-native-maps’ "

Apparently “ViewStylePropTypes” is mis-spelled in the Expo package. It should have been “ViewPropTypes”. Please fix this error as soon as you would.

Unable to resolve “react-native/Libraries/Components/View/ViewStylePropTypes” from “node_modules/expo/node_modules/react-native-reanimated/src/createAnimatedComponent.js”

Expo CLI 2.20.5 environment info:
System:
OS: macOS High Sierra 10.13.6
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 10.15.2 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.4.1 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5199772
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
expo: ^32.0.6 => 32.0.6
react: 16.8.3 => 16.8.3
react-native: https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz => 0.59.8
npmGlobalPackages:
expo-cli: 2.20.5

Hi @olee-o, could you share a snack that reproduces this issue?

Also, your npm packages show you using Expo SDK 32, but with react and react-native pinned to later versions than that SDK needs pinned. Specifically,

react: 16.8.3 => 16.8.3
react-native: https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz

are for SDK 33.

Yup. You are correct! I figured it out and forgot to mention it in this channel…You can close this issue if you would.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.