From 03db3cd843db18b06bf12c2f0d47f6eb0501ce4c Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Mon, 11 Jul 2022 11:14:24 +1200 Subject: [PATCH] Move from native-stack to stack navigation for HomePage --- HomePage.tsx | 7 ++++--- package.json | 3 ++- yarn.lock | 27 ++++++++++++++------------- 3 files changed, 20 insertions(+), 17 deletions(-) diff --git a/HomePage.tsx b/HomePage.tsx index 56bdbc5..d738037 100644 --- a/HomePage.tsx +++ b/HomePage.tsx @@ -1,6 +1,6 @@ import {DrawerNavigationProp} from '@react-navigation/drawer'; import {useNavigation} from '@react-navigation/native'; -import {createNativeStackNavigator} from '@react-navigation/native-stack'; +import {createStackNavigator} from '@react-navigation/stack'; import React from 'react'; import {IconButton} from 'react-native-paper'; import {DrawerParamList} from './App'; @@ -8,7 +8,7 @@ import EditSet from './EditSet'; import Set from './set'; import SetsPage from './SetsPage'; -const Stack = createNativeStackNavigator(); +const Stack = createStackNavigator(); export type StackParams = { Sets: {}; EditSet: { @@ -20,7 +20,8 @@ export default function HomePage() { const navigation = useNavigation>(); return ( - +