I would like to nest react-native-router-flux's <Scene/>
and attempted the following, but I am not able to navigate to the <Scene component={Home}/>
from <Scene component={Profile}/>
:
<Scene
component={Home}
initial={true}
key='home'
title='Home'
type='reset'
>
<Scene
component={Profile}
direction='vertical'
key='sell'
title='Sell'
/>
</Scene>
I would like to nest Profile
component inside Home
component, because it can only be accessed via Home
component.
So how can properly I nest Profile
component inside Home
component?
When I also navigate to Profile
component, it navigates with the vertical
direction, but when it tries to navigate to another component (e.g. Actions.test()
), which does not have direction='vertical'
set, from Profile
component, it navigates horizontally when it should be vertically, whereas hitting back button within Profile
component navigates back with vertical
direction.
Since I navigated to Profile
component vertically
, how can I get the Profile
component to be unmounted vertically
when navigating, even when navigating to a component without direction='vertical'
?