Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork31
upgrade to react-navigation 7#72
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Hi@cknitt, can I have a review? thanks :) |
Uh oh!
There was an error while loading.Please reload this page.
src/Stack.res Outdated
| @sendexternalpush: (navigation,string)=>unit="push" | ||
| @sendexternalpushWithParams: (navigation,string,'params)=>unit="push" | ||
| @sendexternalpop: (navigation, ~count:int=?,unit)=>unit="pop" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
With ReScript 11.1, we could get rid of the trailing unit everywhere.
src/Stack.res Outdated
| @sendexternalpopTo: (navigation,string)=>unit="popTo" | ||
| @send | ||
| externalpopToWithParams: (navigation,string,'params)=>unit="popTo" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
With ReScript 11.1, we could have a single binding with an optional param (without trailing unit) instead.
Co-authored-by: Christoph Knittel <ck@cca.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
👍 🎉
816a664 intomainUh oh!
There was an error while loading.Please reload this page.
Following :https://reactnavigation.org/docs/upgrading-from-6.x