react-native-tab-view icon indicating copy to clipboard operation
react-native-tab-view copied to clipboard

Error after installing and importing both TabView and SceneMap

Open dochonglo opened this issue 7 years ago • 4 comments

Current behavior

After following the directions for Expo installation

  • npm install react-native-tab-view
  • expo install react-native-gesture-handler react-native-reanimated

Then integrating the QuickStart code in my project, I get the following error in Terminal as the Javascript Bundle does not build successfully:

  • Unable to resolve "react-native/Libraries/Components/View/ViewStylePropTypes" from "node_modules/react-native-reanimated/src/createAnimatedComponent.js"

Now, from the Expo app on my phone:

error screen

Expected behaviour

I expect the code to run successfully. However, there seems to be an issue with my node_modules after the following installation: expo install react-native-gesture-handler react-native-reanimated.

Code sample

To reproduce this error, make sure are running Expo version 33.0.0 with react Native Version 59.8. Next, follow the installation guide:

  • npm install react-native-tab-view
  • expo install react-native-gesture-handler react-native-reanimated

Then, follow the quickstart guide.

What have you tried

I attempted the follow the instructions from the error code; however, I'm still experiencing the problem. I've also tried using rm -rf node_modules && npm install, but this also did not work. Interestingly, when I remove the following import statement

  • import { TabView, SceneMap } from 'react-native-tab-view'

the error goes away. Therefore, the issue must be with this library.

Your Environment

Currently running:

  • Expo Version 33.0.0
  • React Native Version 59.8

After installation of the following command: expo install react-native-gesture-handler react-native-reanimated, I get the following log:

Screenshot 2019-09-04 17 33 50(2)

I'm also using npm.

Thanks everyone!

dochonglo avatar Sep 04 '19 21:09 dochonglo

The same happens when I try too.

snaksa avatar Sep 07 '19 16:09 snaksa

Expo already ships react-native-gesture-handler react-native-reanimated you don't have to install it

chakrihacker avatar Sep 09 '19 06:09 chakrihacker

Hello 👋, this issue has been open for more than 2 months with no activity on it. If the issue is still present in the latest version, please leave a comment within 7 days to keep it open, otherwise it will be closed automatically. If you found a solution on workaround for the issue, please comment here for others to find. If this issue is critical for you, please consider sending a pull request to fix the issue.

github-actions[bot] avatar Nov 19 '19 00:11 github-actions[bot]

Issue is with the expo install command installing "react-native-reanimated": "^1.2.0", Change version to ^1.3.0 and npm install and it should fix it

jantongiovanni avatar Nov 24 '19 19:11 jantongiovanni