Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PanGestureHandler must be used as a descendant of GestureHandlerRootView #85

Closed
kaiyes opened this issue May 14, 2023 · 6 comments
Closed
Labels

Comments

@kaiyes
Copy link

kaiyes commented May 14, 2023

Hi,

On Latest react native 71.7 & react navigation 6x packages, I get this error. Was working fine on react native 67 & navigation 5x packages. Any info on that ?

simulator_screenshot_6583D101-8189-44EA-865B-3DC130114ABB

@vmsilva
Copy link

vmsilva commented May 18, 2023

same problem here!

"expo": "~48.0.9",
"expo-splash-screen": "~0.18.1",
"expo-status-bar": "~1.4.4",
"react": "18.2.0",
"react-native": "0.71.4",

"@config-plugins/react-native-google-cast": "^4.0.0",
"@expo/vector-icons": "^13.0.0",
"@gorhom/bottom-sheet": "^4",
"@react-native-async-storage/async-storage": "^1.17.11",
"@react-native-community/netinfo": "^9.3.7",
"@react-native-community/slider": "^4.4.0",
"@react-navigation/bottom-tabs": "^6.5.7",
"@react-navigation/drawer": "^6.5.7",
"@react-navigation/material-bottom-tabs": "^6.2.15",
"@react-navigation/native": "^6.1.6",
"@react-navigation/stack": "^6.3.11",
"@unform/mobile": "^2.1.6",
"axios": "^1.2.3",
"deprecated-react-native-prop-types": "^4.0.0",
"expo-av": "^13.2.1",
"expo-font": "^11.0.1",
"expo-image-picker": "^14.1.1",
"expo-screen-orientation": "^5.0.1",
"expo-tracking-transparency": "^3.0.1",
"expo-updates": "~0.16.4",
"lottie-ios": "3.4.1",
"lottie-react-native": "^5.1.4",
"react-dom": "16.3.0",
"react-native-device-info": "^10.3.0",
"react-native-fast-image": "^8.6.3",
"react-native-gesture-handler": "^2.9.0",
"react-native-google-cast": "^4.6.2",
"react-native-linear-gradient": "^2.6.2",
"react-native-material-tabs": "^4.2.0",
"react-native-md5": "^1.0.0",
"react-native-navigation-bar-color": "^2.0.2",
"react-native-notifier": "^1.9.0",
"react-native-pager-view": "^6.1.4",
"react-native-paper": "4.12.1",
"react-native-reanimated": "^3.1.0",
"react-native-redash": "^18.1.0",
"react-native-responsive-screen": "^1.4.2",
"react-native-safe-area-context": "^4.5.2",
"react-native-screens": "^3.20.0",
"react-native-snap-carousel": "^3.9.1",
"react-native-svg": "13.4.0",
"react-native-tab-view": "^3.5.1",
"react-native-vector-icons": "^9.2.0",
"react-native-webview": "11.23.1",
"react-navigation": "^4.4.4",
"styled-components": "^5.3.6",
"typescript": "^4.9.4",
"yup": "^0.32.11",
"react-native-onesignal": "^4.5.1"

@vineelk8
Copy link

vineelk8 commented Jun 1, 2023

Having the same issue with the below packages versions

"react-native": "0.71.8",
"react-native-notifier": "^1.9.0",
And react-navigation with 6x.

@danielroccha
Copy link

Same Issue here, any updates ?

@fidelsam1992
Copy link

Make sure to wrap your App with

import { GestureHandlerRootView } from "react-native-gesture-handler";
import { NotifierWrapper } from "react-native-notifier";

return (
<GestureHandlerRootView style={{ flex: 1 }}>
  <NotifierWrapper>
              {/* App */}
  </NotifierWrapper>
</GestureHandlerRootView>
)

@seniv
Copy link
Owner

seniv commented Jun 23, 2023

Hello,
This part was covered in the installation guide of Gesture Handler: https://docs.swmansion.com/react-native-gesture-handler/docs/installation#js
image
And as in @fidelsam1992's example, make sure that you place NotifierWrapper inside GestureHandlerRootView, not above

@stale
Copy link

stale bot commented Sep 16, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 16, 2023
@stale stale bot closed this as completed Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants