Skip to content

Help: showing new route from a deeply nested component #134

Open
@folivi

Description

@folivi

Hey guys,
Can someone help achieve this?
I have the implementation below.

It's pretty simple:

-in my index.ios.js file:

<TabBarIOS>
<Icon.TabBarItem><Component1></Icon.TabBarItem>
<Icon.TabBarItem>
<Router firstRoute= Component2 />
</TabBarIOS>

Here goes the component 2

 <ScrollableTabView>
      <Component3 />
  </ScrollableTabView>

Component3 displays a collection of items
Let's say < ListItem />

In the ListItem component I render a view inside a TouchableHighlight.

The goal is to pop a < ItemDetailsView > to the router when user taps on one item inside the list
I assume I have to pass the router down from the parent to the nested children but I can't figure out how.

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions