I am using the following components in creating a React Native app:
For the drawer, I would like it to close when I press on a link to navigate to a new scene.
My drawer content is defined like so, using react-native-router-flux 'Actions':
<ListItem>
<Text onPress={Actions.treatments}>Treatments</Text>
</ListItem>
The navigation part works, but where I'm lost is how to trigger the drawer to close upon pressing one of the links. How could I accomplish this?