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

drawer not always working in android

Open nimamoradi opened this issue 8 years ago • 6 comments

Environment

  • React Native Navigation version: 5.6.0
  • React Native version: 0.51
  • Platform(s) (iOS, Android, or both?): android , maybe ios too
  • Device info (Simulator/Device? OS version? Debug/Release?):Release lg g5 and samsung s8

Issue Description

i start drawer which work most of the time right but sometimes it make screen black screen but no drawer

Steps to Reproduce / Code Snippets / Screenshots

first i make screen like this

export function login() {
    let startAppdata = {
        screen: {
            screen: 'example.Types.loginScreen', // unique ID registered with Navigation.registerScreen
            navigatorStyle: {
                navBarHidden: true,
            }
        },
        appStyle: {
            orientation: 'portrait',
        },
        drawer: { // optional, add this if you want a side menu drawer in your app
            right: { // optional, define if you want a drawer from the right
                screen: 'example.Types.Drawer', // unique ID registered with Navigation.registerScreen
                passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
                percentOfScreenWidth: 0.75,
            },

            style: { // ( iOS only )
                drawerShadow: true, // optional, add this if you want a side menu drawer shadow
                contentOverlayColor: 'rgba(0,0,0,0.25)', // optional, add this if you want a overlay color when drawer is open
            },
            type: 'TheSideBar', // optional, iOS only, types: 'TheSideBar', 'MMDrawer' default: 'MMDrawer'
            animationType: 'parallax', //optional, iOS only, for MMDrawer: 'door', 'parallax', 'slide', 'slide-and-scale'
            // for TheSideBar: 'airbnb', 'facebook', 'luvocracy','wunder-list'
            disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
        },
        portraitOnlyMode: true,

    };
    return (startAppdata);
}

then i start it Navigation.startSingleScreenApp(login());

drawer render method is like

 render() {
        return (
            
.
.
.
   container: {
        width: 75 * vw,
        height: 100 * vh,
        alignItems: 'center',
        justifyContent: 'center',
        backgroundColor: '#ffffff',
        flexDirection: 'column'
    },

when ran to issue i got a screenshot https://imgur.com/a8foB9a

nimamoradi avatar Apr 28 '18 20:04 nimamoradi

My drawer also seems to fail sometimes, and seems to be related with "using the menu too soon", before things are properly mounted?

hugows avatar Apr 30 '18 13:04 hugows

probably duplicate as this issue https://github.com/wix/react-native-navigation/issues/1583

nimamoradi avatar May 11 '18 08:05 nimamoradi

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest version and report back. Thank you for your contributions.

stale[bot] avatar Jun 25 '18 09:06 stale[bot]

The issue has been closed for inactivity.

stale[bot] avatar Jul 02 '18 09:07 stale[bot]

same me, sometimes menu on android is not available. i can press on menu but drawer not open, nothing action!

windydang26 avatar Jul 09 '18 04:07 windydang26

Same here. When the problem happens, if I click the menu button, I get no feedback. When I try to swipe from left border, I get a black screen for some milliseconds. Ex:

augustofontes avatar Sep 02 '18 19:09 augustofontes