Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get current transition route name #226

Open
lefrankleal opened this issue Dec 10, 2019 · 0 comments
Open

get current transition route name #226

lefrankleal opened this issue Dec 10, 2019 · 0 comments

Comments

@lefrankleal
Copy link

lefrankleal commented Dec 10, 2019

Hello every one, am trying to display some info in the headers but actually idk how to get the current screen name, if i call this.props.navigation.state.routeName it will show the route name used in my router and not the transitioned view.

my Router where i placed my FluidNavigator is Offers, and my FluidNavigator is:

const Navigator = FluidNavigator({
  OffersList: { screen: OffersList },
  OfferDetails: { screen: OfferDetails },
  OfferImage: { screen: OfferImage },
}, {
  style: {
    minHeight: height,
    width: width
  },
  defaultNavigationOptions: {
    gesturesEnabled: true,
  },
})

used as docs

<Navigator navigation={this.props.navigation} />

so i want to know how do i get the routeName inside my Navigator, ie OfferImage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant