react-native-router-flux: Actions.KEY doesn't work inside function that is passed to onPress
<p>I have the following code: </p>

<pre><code>_renderMenuItem(name) {
    return (
        &lt;TouchableHighlight onPress={() =&gt; this._onItemClicked(name) }&gt;
            &lt;Text&gt;{name}&lt;/Text&gt;
        &lt;/TouchableHighlight&gt;
    )
}

_onItemClicked(name) {
    Actions.categoryScreen()
    this.props.dispatch(updateActivePage(name))

    // Close the NavigationDrawer
    Actions.refresh({ key: 'drawer', open: false })
}
</code></pre>

<p>The <code>Actions.refresh()</code> works fine but the <code>Actions.categoryScreen()</code> doesn't -looks like nothing really happens. If I replace the parameter passed to the <code>onPress</code> with <code>onPress={Actions.categoryScreen}</code> then it works fine and the categoryScreen is shown. However, this does not help me cause there are more stuff I want to do when onPress is triggered and I also need to pass the 'name' parameter.</p>

<p>Any ideas, anyone?</p>

<p>Thanks in advance.</p>