Skip to content

get current transition route name #226

@lefrankleal

Description

@lefrankleal

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions