I can use this.props.navigation
Ben
1

Ah gotcha! You can just pass it down as a prop like any other

<Element 
key={data._id}
test={data.test}
rootNavigation={this.props.navigation}
/>

Then from your Element component you can access it via this.props.rootNavigation to do what you need.

Hope that helps!

Show your support

Clapping shows how much you appreciated Spencer Carli’s story.