我想通过向左滑动手势从state 1(List View)
返回state 2(Scroll View)
。
我已经实现了如何从状态1进入状态2,但目前,返回的唯一方法是单击导航栏上的后退按钮。
我可以搜索资源的任何关键字/想法吗?
Actions.wordDetail({
...this.props,
word: this.props.word.word,
title: capitalizeFirstLetter(this.props.word.word),
definition: this.props.definition,
showDetail: true
});
const RouterComponent = () => {
return (
<Router>
<Scene panHandlers={null} key="root">
<Scene panHandlers={null} key="auth" hideNavBar={1}>
<Scene panHandlers={null} key="login" component={LoginForm}/>
</Scene>
<Scene panHandlers={null} key="main" hideNavBar={1}>
<Scene
panHandlers={null} key="wordList"
component={WordBank}
title="Words Bank"
initial
/>
</Scene>
<Scene
panHandlers={null}
key="wordDetail"
component={ItemDetail}
/>
</Scene>
</Router>
);
};