So I'm making an app with React-Native and Native-Base 3. However, I can't seem to figure out how to make a onPress for a menu item. I can successfully render it just fine, but I can't seem to find an example in the docs or elsewhere that actually does something when you press it. Any workarounds? Example of my code below
<Box style={styles.topNavItems}>
<Menu
trigger={(triggerProps) => {
return <Pressable><IconButton {...triggerProps} icon={<Icon name={'account-circle-outline'} size={30}/>} /></Pressable>
}}>
<Menu.Item>Profile</Menu.Item> //pressing this should invoke a function
<Menu.Item>Account</Menu.Item>
<Menu.Item>Settings</Menu.Item>
<Menu.Item>Tutorials</Menu.Item>
<Menu.Item>Help</Menu.Item>
<Menu.Item>Sign Out</Menu.Item>
</Menu>