react-navigation icon indicating copy to clipboard operation
react-navigation copied to clipboard

Drawer Navigation drawerItem onPress always give that gray background even with drawerActiveTintColor

Open ejjraifihamza opened this issue 2 years ago • 1 comments

Current behavior

screenOptions={{
        headerShown: false,
        drawerLabelStyle: styles.drawerLStyle,
        drawerActiveBackgroundColor: 'rgba(120,94,168, .08)',
        drawerActiveTintColor: Colors.primary,
        swipeEdgeWidth: Dimensions.get('window').width / 2,
        drawerType: 'slide',
        drawerItemStyle: {
          borderRadius: 0,
          width: '100%',
          marginLeft: 0,
          paddingLeft: wp('2%'),
        },
      }}>

Capture d’écran 2022-06-20 175104

Expected behavior

will shouldn't background color be Color.primary instead of gray ?

Reproduction

https://github.com/ejjraifihamza/SobrusWorkspace

Platform

  • [X] Android
  • [ ] iOS
  • [ ] Web
  • [ ] Windows
  • [ ] MacOS

Packages

  • [ ] @react-navigation/​bottom-tabs
  • [X] @react-navigation/​drawer
  • [ ] @react-navigation/​material-bottom-tabs
  • [ ] @react-navigation/​material-top-tabs
  • [ ] @react-navigation/​stack
  • [ ] @react-navigation/​native-stack

Environment

package version
@react-navigation/native
@react-navigation/bottom-tabs
@react-navigation/drawer
@react-navigation/material-bottom-tabs
@react-navigation/material-top-tabs
@react-navigation/stack
@react-navigation/native-stack
react-native-safe-area-context
react-native-gesture-handler
react-native-reanimated
react-native

ejjraifihamza avatar Jun 20 '22 17:06 ejjraifihamza

Couldn't find version numbers for the following packages in the issue:

  • @react-navigation/native
  • @react-navigation/bottom-tabs
  • @react-navigation/drawer
  • @react-navigation/material-bottom-tabs
  • @react-navigation/material-top-tabs
  • @react-navigation/stack

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

github-actions[bot] avatar Jun 20 '22 17:06 github-actions[bot]

What's the solution?

KailashGnath avatar Jan 19 '23 08:01 KailashGnath

No solution yet

ejjraifihamza avatar Jan 19 '23 08:01 ejjraifihamza