diff --git a/native/navigation/community-drawer-navigator.react.js b/native/navigation/community-drawer-navigator.react.js new file mode 100644 --- /dev/null +++ b/native/navigation/community-drawer-navigator.react.js @@ -0,0 +1,50 @@ +// @flow + +import { createDrawerNavigator } from '@react-navigation/drawer'; +import * as React from 'react'; +import { Dimensions, View } from 'react-native'; + +import { useStyles } from '../themes/colors'; +import type { AppNavigationProp } from './app-navigator.react'; +import CommunityDrawerContent from './community-drawer-content.react'; +import { TabNavigatorRouteName } from './route-names'; +import type { NavigationRoute } from './route-names'; +import TabNavigator from './tab-navigator.react'; + +const Drawer = createDrawerNavigator(); + +const communityDrawerContent = () => ; + +type Props = { + +navigation: AppNavigationProp<'CommunityDrawerNavigator'>, + +route: NavigationRoute<'CommunityDrawerNavigator'>, +}; + +// eslint-disable-next-line no-unused-vars +function CommunityDrawerNavigator(props: Props): React.Node { + const styles = useStyles(unboundStyles); + + return ( + + + + + + ); +} + +const unboundStyles = { + drawerView: { + flex: 1, + }, + drawerStyle: { + width: Dimensions.get('window').width - 36, + }, +}; + +export { CommunityDrawerNavigator };