Skip to content

Commit

Permalink
gave the drawer bigger width, also removed X icon
Browse files Browse the repository at this point in the history
  • Loading branch information
desperado1802 committed Oct 21, 2023
1 parent 1ac3959 commit c5160d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions apps/mobile/app/components/HamburgerMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ const HamburgerMenu = observer((props: any) => {
{isOpen && (
<BlurView
intensity={15}
onTouchStart={() => navigation.closeDrawer()}
tint="dark"
style={{
position: "absolute",
Expand All @@ -209,14 +210,6 @@ const HamburgerMenu = observer((props: any) => {
}}
/>
)}
{isOpen ? (
<TouchableOpacity
style={[styles.close, { backgroundColor: colors.background }]}
onPress={() => navigation.closeDrawer()}
>
<Text style={{ color: colors.primary }}>X</Text>
</TouchableOpacity>
) : null}
</View>
</TouchableWithoutFeedback>
)
Expand Down Expand Up @@ -244,7 +237,7 @@ const styles = StyleSheet.create({
},
container: {
flex: 1,
paddingHorizontal: 20,
paddingHorizontal: 50,
},
headerIconsContainer: {
flexDirection: "row",
Expand Down
2 changes: 1 addition & 1 deletion apps/mobile/app/navigators/AuthenticatedNavigator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const AuthenticatedNavigator = observer(function AuthenticatedNavigator()
return (
<drawer.Navigator
drawerContent={(props) => <HamburgerMenu {...props} />}
screenOptions={{ headerShown: false, drawerPosition: "right" }}
screenOptions={{ headerShown: false, drawerPosition: "right", drawerStyle: { width: "83%" } }}
>
<drawer.Screen name="AuthenticatedTab" component={TabNavigator} />
<drawer.Screen name="Setting" component={AuthenticatedSettingScreen} />
Expand Down

0 comments on commit c5160d5

Please sign in to comment.