You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using Hyperview in an existing app using 'react-navigation' for a screen without any navigation parameters passed to it e.g.
functionScreen({navigation, route}){return<Hyperviewnavigation={navigation}route={route}push={(params)=>{// parse params and call navigation.push}}back={navigation.goBack}navigate={(params)=>{// parse params and call navigation.navigate}}// other props/>;}
In this case, route.params === undefined which hyperview doesn't seem to handle. I forked the library and fixed the issue in these commits:
Thanks for reporting @Charles-Johnson . We have developed a new way to define navigation hierarchy in HXML itself, this is a new feature that isn't well documented yet. Perhaps @hgray-instawork can chime in since he worked on it. We welcome contributions but I want to make sure the work would be relevant given we are rolling out the new system soon!
Thanks very much for your contribution @Charles-Johnson. I'll have a look at the proposed changes and compare them to what we have in our new implementation.
I tried using Hyperview in an existing app using 'react-navigation' for a screen without any navigation parameters passed to it e.g.
In this case,
route.params === undefined
which hyperview doesn't seem to handle. I forked the library and fixed the issue in these commits:Perhaps stricter type checking is needed in https://github.com/Instawork/hyperview/tree/master/src/core/components/hv-screen to avoid these kinds of issues?
What would be the best way to contribute back?
The text was updated successfully, but these errors were encountered: