Open deedoc opened 7 years ago
Hm, this is interesting. Seems that Button
has an absolute positioning. Is it a standard RN button component?
Yes, this is Button from react-native (notice import on top of source)
At the moment there is no enougn time to drill deeper, but in my working project, I avoided this by wrapping Button into View -> ScrollView like this:
// menu component's render
render(){
return <View style={styles.menu}>
<ScrollView><FlatList
data={this.links}
renderItem={({item, index}) => <View style={styles.menuItem}>
<MenuLink to={item.to}><Text style={styles.menuItemText}>{item.label}</Text></MenuLink>
</View>}
/></ScrollView>
{/* https://github.com/react-native-community/react-native-side-menu/issues/312 */}
<View><ScrollView><ExitButton /></ScrollView></View>
</View>
}
With folowing sample code we have "Exit button" drawed atop of screen content
Attaching screenshots
Menu opened:
Menu closed: