alantoa / expo-reanimated-av-player

A high-performance, interactive and customizable video player control, built upon Reanimated v2 & GestureHandler v2
MIT License
84 stars 12 forks source link

Invariant Violation: Tried to register two views with the same name RNGestureHandlerRootView #2

Open byteab opened 2 years ago

abdullahceylan commented 1 year ago

This is happening due to multiple versions of react-native-gesture-handler that are installed by different dependencies. Just add react-native-gesture-handler to the resolutions section of package.json file and run yarn install again.

"resolutions": {
    "react-native-gesture-handler": "~2.5.0"
  }
byteab commented 1 year ago

thanks for that, it works. a little bit confused about why it happened. as it seems the library is also using peerDependencies