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

Support for custom backButton #2385

Closed
thebergamo opened this issue Sep 13, 2017 · 6 comments
Closed

Support for custom backButton #2385

thebergamo opened this issue Sep 13, 2017 · 6 comments

Comments

@thebergamo
Copy link

thebergamo commented Sep 13, 2017

Version

Tell us which versions you are using:

  • react-native-router-flux v4.0.0-beta.21 (v3 is not supported)

Expected behaviour

Using a custom component for the backButton in NavBar instead of just an image

Actual behaviour

You can't register a custom component to backbutton just images

@thebergamo thebergamo changed the title Support for custom backButtom Support for custom backButton Sep 13, 2017
@hungdev
Copy link

hungdev commented Sep 18, 2017

this is props in <Scene. read more API docs.
back backButtonImage={Images.arrowLeft} leftButtonIconStyle={styles.backButtonStyle}

@thebergamo
Copy link
Author

@hungdev the issue is related to the NavBar (In this case, NavBar is a shortcut for some configurations in Scene).
We can set images and styles for the back button, but if I want to add more behaviors I can't just using a fully custom "backButton"

@hungdev
Copy link

hungdev commented Sep 22, 2017

but if i want to add more behaviors you can use custom navbar component.

@mcabs3
Copy link
Collaborator

mcabs3 commented Sep 23, 2017

try renderLeftButton

@thebergamo
Copy link
Author

@mcabs3 you can close this issue at this moment. I back using the v3. The v4 demands a lot of refactoring that unfortunately we don't have time to do. :(

@mcabs3
Copy link
Collaborator

mcabs3 commented Sep 25, 2017

@thebergamo i'm sorry to hear that. if you have more questions i'll do my best to help.

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

No branches or pull requests

3 participants