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

feat(web): add web-compatible linking and titling in react-navigation #38

Merged
merged 3 commits into from
Dec 4, 2021

Conversation

mikehardy
Copy link
Collaborator

@mikehardy mikehardy commented Dec 4, 2021

I am new to the web stuff and forgot that managing the title URL in the browser bar is really important.

Not only does it pay to have the web title bar look nice (for bookmarking) but URL management is important for aesthetics, again for bookmarking (deep link recognition and page routing...) but most importantly: so the back button doesn't destroy your app's navigation state

So this adds a semi-fancy page title function as an example, and adds a third tab + config that shows how the whole thing works using the web-compatible version of react-navigation linking

As a PR it's kind of "meh" at the same time that I immediately noticed I needed it 2 layers up in my work projects, curious what you think here? If it looks good I'll expand it for the auth template

@LunatiqueCoder
Copy link
Owner

Hmm I always wanted to try it out, can’t wait to get home and see it in action 😂

@mikehardy
Copy link
Collaborator Author

If I had done a CI action already you'd just go clicky click and see it haha. next week maybe

I just started receiving this with the default settings on this template
I'm a little surprised since this template is pretty lean for react-native,
but this is common for me on other projects. Looks like it's time here
@mikehardy
Copy link
Collaborator Author

I tested this on native as an afterthought - obviously it's web-focused - and I had to bump gradle ram to run it, so I added that as a follow-on commit

@LunatiqueCoder LunatiqueCoder added the enhancement New feature or request label Dec 4, 2021
@LunatiqueCoder LunatiqueCoder merged commit 198519b into LunatiqueCoder:master Dec 4, 2021
@mikehardy mikehardy deleted the @mikehardy/linking branch December 5, 2021 13:29
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

Successfully merging this pull request may close these issues.

2 participants