File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
File name
Commit message
Commit date
import { Button } from 'react-native';
import { createStackNavigator } from '@react-navigation/stack';
import BottomStack from './BottomStack';
import ListDetailScreen from '../screens/ListDetailScreen';
import {useNavigation} from '@react-navigation/native';
const Stack = createStackNavigator();
const MainStack = () => {
const navigation = useNavigation();
return (
<Stack.Navigator initialRouteName="BottomHome" screenOptions={{ headerShown: false }}>
<Stack.Screen
name="BottomHome"
component={BottomStack}
/>
<Stack.Screen name="ListDetail"
component={ListDetailScreen}/>
</Stack.Navigator>
);
};
export default MainStack;