Skip to content

Commit 10f78f7

Browse files
authored
Merge pull request #3 from JinHoSo/hotfix-missing-ref-from-navigation-container
fixed backbutton issue
2 parents e00a03a + 0131840 commit 10f78f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/navigation.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import React from 'react'
66
import Home from './screen/home/Home'
77
import Profile from './screen/profile/Profile'
88
import Settings from './screen/settings/Settings'
9+
import { navigationRef } from './services/navigationService'
910

1011
const Stack = createStackNavigator()
1112
const Tab = createBottomTabNavigator()
@@ -45,7 +46,7 @@ const TabNavigation = () => (
4546
)
4647

4748
export const AppNavigation = () => (
48-
<NavigationContainer>
49+
<NavigationContainer ref={navigationRef}>
4950
<Stack.Navigator
5051
initialRouteName={'Home'}
5152
headerMode={'screen'}

0 commit comments

Comments
 (0)