Skip to content

Commit 4f9a1e0

Browse files
authored
chore(documentation): Fix missing dependency in Android back press example (react-native-webview#3695)
1 parent 1193df4 commit 4f9a1e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ useEffect(() => {
645645
BackHandler.removeEventListener('hardwareBackPress', onAndroidBackPress);
646646
};
647647
}
648-
}, []);
648+
}, [onAndroidBackPress]);
649649
```
650650
651651
And add these prop to your `WebView` component:

0 commit comments

Comments
 (0)