SidebarPage.js 555 B

12345678910111213141516171819202122232425
  1. import { StyleSheet, Text, View } from 'react-native'
  2. import React from 'react'
  3. import { createDrawerNavigator } from '@react-navigation/drawer';
  4. const Drawer = createDrawerNavigator();
  5. const SidebarContent = (props) => {
  6. return (
  7. <View><Text>SidebarContent</Text></View>
  8. )
  9. }
  10. const SidebarPage = () => {
  11. return (
  12. <Drawer.Navigator
  13. drawerContent={(props) => <SidebarContent {...props} />}
  14. >
  15. </Drawer.Navigator>
  16. )
  17. }
  18. export default SidebarPage
  19. const styles = StyleSheet.create({})