-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Question] How to *really* upgrade from V3 to V4? #2060
Comments
|
Thank you very much. WIll give it a new try tomorrow |
@aksonov One more question please. How can i exchange the Menu-Icon, that is used in the NavBar with drawer? I looked around in NavBar.js and tried to pass a property "leftButtonImage" to the Scene. But this property isn't passed thru to the state, that will passed itself to |
1. Try drawerImage
2. It is because of transpiled code. Change dist/index.js to src/index.js within node_modules/rnrf first
… 19 июля 2017 г., в 20:16, Hagen Hübel ***@***.***> написал(а):
@aksonov One more question please.
How can i exchange the Menu-Icon, that is used in the NavBar with drawer?
I looked around in NavBar.js and tried to pass a property "backButtonImage". But it won't work.
I also tried to pass some console.log into the function "renderBackButton", but it gots never called.
Buy the way, how did you worked/debugged the example application?
Even if i completely reset packager and restart everything from scratch and change lines in "node_modules/react-native-router-flux" in the Example-application they got never called. I've never had this behaviour before with lower RN-versions, when i created my pull request for the navbar-background, which needed those things for debugging....
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Thank you very much! There is one special detail: on the most outer Scene with |
@itinance Thanks, docs were updated. Closing this ticket. |
hi how can i integrate Drawer using react-native-router-flux: 4.0.0-beta21 |
We ran into issues with our previous setup based on V3 after upgrading to V4. Since V3 is not working any more on RN 0.45.1 due to missing dependencies based in react-native-navigator-experimental, we need a way to keep on running with V4.
These are our scenes:
In some scenes we push to another scenes with:
Actions.main()
or
Actions.main({type: ActionConst.REPLACE})
But both calls will raise exceptions called
I've already read #2017 and tried to flatten down our scenes. But this exception persists.
I'm also courious how to deal with Drawer in V4 according to your statement:
But this one i've already placed here and will mention it here also for the sake of completeness:
#1974 (comment)
Is the new
drawer
-Attribute simply a boolean setting to true when a scene is managed by a drawer? I understood, thatcontentComponent
will now be the attribute where to pass the final Drawer-Component (which was passed with "drawer
"-Attribute in V3)Can you or another contributor please update the docs or give any hints? Thank you :)
The text was updated successfully, but these errors were encountered: