Side Menu
It will get the routing from the drawer function
Menu item
var sideItemList = arr.map((route) => {
return (
<View key={route.key} style={styles.sideItemContainer}>
<Text
onPress={this.navigateToScreen(route.key)}
style={activeKey === route.key ? styles.sideItemTextActive : styles.sideItemTextInactive}
>
{route.key}
</Text>
</View>
);
})Last updated