Skip to content

Commit 74c2f5e

Browse files
committed
Update link in the error message (#3625)
## Description The link in the error message about the missing `GestureHandlerRootView` was outdated, and the page no longer exists. ## Test plan Open the new link
1 parent 37a1c10 commit 74c2f5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-native-gesture-handler/src/handlers/createHandler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ export default function createHandler<
446446
if (__DEV__ && !this.context && !isTestEnv() && Platform.OS !== 'web') {
447447
throw new Error(
448448
name +
449-
' must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/installation for more details.'
449+
' must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/installation for more details.'
450450
);
451451
}
452452

packages/react-native-gesture-handler/src/handlers/gestures/GestureDetector/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const GestureDetector = (props: GestureDetectorProps) => {
9696
const rootViewContext = useContext(GestureHandlerRootViewContext);
9797
if (__DEV__ && !rootViewContext && !isTestEnv() && Platform.OS !== 'web') {
9898
throw new Error(
99-
'GestureDetector must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/installation for more details.'
99+
'GestureDetector must be used as a descendant of GestureHandlerRootView. Otherwise the gestures will not be recognized. See https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/installation for more details.'
100100
);
101101
}
102102

0 commit comments

Comments
 (0)