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

renderRightButton doesn't render anything #3247

Closed
Luckygirlllll opened this issue Sep 6, 2018 · 1 comment
Closed

renderRightButton doesn't render anything #3247

Luckygirlllll opened this issue Sep 6, 2018 · 1 comment

Comments

@Luckygirlllll
Copy link

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.1
  • react v16.?.?
  • react-native v0.55.1

Expected behaviour

See text in the right side of NavBae

Actual behaviour

Don't see text in the right side of NavBar

Steps to reproduce

For non-obvious bugs, please fork this component, modify Example project to reproduce your issue and include link here.

   <Scene
          initial={isLoggedIn &&  profile.homebase && profile.drivingSince && profile.vehicleType && profile.payRate }
          key='mapScreen'
          component={MapScreen}
          navBar={PlatformNavbar}
          renderRightButton={() => <Text style={{ color: Colors.white }}>Right</Text>}
          logo="mf-logo"
          hideNavBar={false}
        />

Reproducible Demo

Please provide a minimized reproducible demonstration of the problem you're reporting.

Issues that come with minimal repro's are resolved much more quickly than issues where a maintainer has to reproduce themselves.

@daviscabral
Copy link
Collaborator

Take a look in the file Example/Example.js and see if you can reproduce the error using the Example project that we have here.

I would say that it might be related with the Scene - if you have it nested in other scenes - it will not work, cause it does not manage the that anymore after the react-navigation upgrade. So you will have to pass this prop to the right scene to have it showed right.

The example app is working as expected - try to run it - it might shed a light for you.

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

2 participants