aksonov / aksonov/react-native-router-flux

Cannot get SideMenu to appear or function

Open
#3,792 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8.9k
Forks
2.1k
PR merge metrics
No merged PRs in 30d

Description

### Version
Tell us which versions you are using:

- react-native-router-flux v4.3.1
- react-navigation/drawer": "^6.1.4"
- react v17.0.1
- react-native v0.64.2

### Expected behaviour
Menu to appear or function
I have migrated an older ReactNative project to the most currently compatible react-native-router-flux and components although I have attempted to get the side-menu to appear using examples I've found in this project but for some reason I cannot get the menu to appear or function. I've tried wrapping my entire Route in a NavigationContainer and anything else I can find so I must be missing something simple here. Can anyone spot the issue? I'd greatly appreciate it!

### Actual behaviour
Swipe does no action nor does menu appear

### Steps to reproduce
For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.
1. Upgraded to 4.x and no longer see the menu nor it's function
```
render() {
return (



}
style={{ paddingTop: style.headerHeight }}
/>






}
renderRightButton={e => }
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>




);
}
}
```

```
import React, { Component } from 'react';
import { Actions, DefaultRenderer } from 'react-native-router-flux';
import Sidebar from './components/Sidebar';
import { deviceWidth } from './constants';
import Drawer from 'react-native-drawer';

export default class NavigationDrawer extends Component {
render() {
const state = this.props.navigationState;
const children = state.children;
// const Drawer = createDrawerNavigator();

return (
Actions.refresh({ key: state.key, open: true })}
onClose={() => Actions.refresh({ key: state.key, open: false })}
content={}
tapToClose={true}
openDrawerOffset={deviceWidth * 0.25}
panOpenMask={50}>


);
}
}

```

### Reproducible Demo

Please provide a minimized reproducible demonstration of the problem you're reporting.

Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.