Skip to content

Commit e00a03a

Browse files
authored
Merge pull request #2 from JinHoSo/hotfix-missing-navigation-in-some-method
fixed missing local method
2 parents 3f6254b + ae78ebc commit e00a03a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hooks/useHardwareBackPress.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ export const useHardwareBackPress = (): void => {
2828
const navigation = useNavigation()
2929

3030
const handleBackPress = useCallback(() => {
31-
if (canGoBack()) {
32-
goBack()
31+
if (navigation.canGoBack()) {
32+
navigation.goBack()
3333
return true
3434
}
3535
else {

0 commit comments

Comments
 (0)