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

Using react-navigation native header for screens #529

Open
rtpm opened this issue Apr 14, 2023 · 2 comments
Open

Using react-navigation native header for screens #529

rtpm opened this issue Apr 14, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@rtpm
Copy link

rtpm commented Apr 14, 2023

Can native navigation header be used with hyperview?

In the demo app, a native navigator is hidden, and every screen returns it's own header instead of modifying the
title of the native one.
This means there are no iOS swipe left to right navigation and native look available.

Thanks

@adamstep
Copy link
Contributor

@rtpm Technically you can use any navigation implementation you want, as long as you support the callbacks described here: https://hyperview.org/docs/reference_hyperview_component (push(), back(), openModal(), closeModal(), etc).

The demo app is built using React Navigation which I believe does support title bars with transitions and swipe gestures. In fact the demo app supports left-to-right swipe, albeit without the title transitions you described. If you want to try using React Navigation's support for native headers, let me know and I can try to help.

@adamstep
Copy link
Contributor

You may be interested in the work we are doing to expose navigation hierarchy through the Hyperview XML: https://github.com/Instawork/hyperview/commits/hardin/navigator-integration

This will enable native navigation to be used and controlled through the markup, without requiring custom JS logic.

@flochtililoch flochtililoch added the enhancement New feature or request label Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants