BookmarkNavigator.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { View, Text , TouchableWithoutFeedback} from 'react-native'
  2. import React from 'react'
  3. import BookmarkPage from '../screens/BookmarkPage';
  4. import SidebarPage from '../screens/SidebarPage';
  5. import { createNativeStackNavigator } from "@react-navigation/native-stack"
  6. import NewscoutTitleHeader from '../components/organisms/Headers/NewscoutTitleHeader';
  7. import OctiIcon from 'react-native-vector-icons/Octicons'
  8. import colors from '../theme/colors';
  9. const Stack = createNativeStackNavigator();
  10. const BookmarkNavigator = ({ route, navigation }) => {
  11. return (
  12. <Stack.Navigator
  13. initialRouteName="BookmarkLanding"
  14. >
  15. <Stack.Screen
  16. name="BookmarkLanding"
  17. options={(navigation) => ({
  18. header: () => <NewscoutTitleHeader title={"My Bookmarks"}>
  19. <TouchableWithoutFeedback onPress={() => {navigation.navigate('Details')}}>
  20. <OctiIcon name='three-bars' size={24} color={colors.topColor} />
  21. </TouchableWithoutFeedback>
  22. </NewscoutTitleHeader>
  23. })}
  24. component={BookmarkPage} />
  25. {/* <Stack.Screen name="Notifications" component={Notifications} />
  26. <Stack.Screen name="Profile" component={Profile} />
  27. <Stack.Screen name="Settings" component={Settings} /> */}
  28. </Stack.Navigator>
  29. )
  30. }
  31. export default BookmarkNavigator