feat: simplify login and register
This commit is contained in:
@@ -6,7 +6,6 @@ import { Routes } from '../navigation'
|
||||
|
||||
import { SplashAnimationContext } from '../providers/SplashAnimationProvider'
|
||||
import { UserDataContext } from '../providers/UserDataProvider'
|
||||
import { getRouteAfterAuthentication } from '../utils/registrationFlow'
|
||||
|
||||
export default ({ navigation }) => {
|
||||
const { setCurrentUserData } = useContext(UserDataContext)
|
||||
@@ -29,7 +28,11 @@ export default ({ navigation }) => {
|
||||
index: 0,
|
||||
routes: [
|
||||
{
|
||||
name: getRouteAfterAuthentication(user),
|
||||
name: Routes.BottomTab,
|
||||
params: {
|
||||
screen: Routes.HomeStack,
|
||||
params: { screen: Routes.Home },
|
||||
},
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user