As Colin mentioned, you need to pass a callback to your list items. Below is the code from the sample project (UIExplorer) in the native reaction itself.
Here we pass the navigator object to NavMenu, which is a component of the list.
var TabBarExample = React.createClass({
In the NavMenu component, we pass the callback to the onPress each NavButton.
class NavMenu extends React.Component { render() { return ( <ScrollView style={styles.scene}> <Text style={styles.messageText}>{this.props.message}</Text> <NavButton onPress={() => { this.props.navigator.push({ message: 'Swipe right to dismiss', sceneConfig: Navigator.SceneConfigs.FloatFromRight, }); }} text="Float in from right" /> <NavButton onPress={() => { this.props.navigator.push({ message: 'Swipe down to dismiss', sceneConfig: Navigator.SceneConfigs.FloatFromBottom, }); }} text="Float in from bottom" />
Here is a link for example.
source share