react-native-gesture-handler icon indicating copy to clipboard operation
react-native-gesture-handler copied to clipboard

zIndex choices with drawerType="slide"

Open shinnoki opened this issue 6 years ago • 0 comments

Hello, I'm using react-navigation and tried to make editable drawer with animations like Slack App.

jan-25-2019 09-41-26

This is implemented by drawerType="slide", position: 'absolute' in drawer content style and animating width. Actually I found drawer comes backward and patched DrawerLayout.js as below.

// drawerType === 'front'
(drawerType === 'front' || drawerType === 'slide')
  ? styles.containerOnBack
  : styles.containerInFront,

I understand this patch happened to match my use case but not to others, so my proposal is adding either new prop like drawerOverlap or drawerType="slide-front".

shinnoki avatar Jan 26 '19 02:01 shinnoki