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

Update to latest version of RN in example app #257

Merged
merged 5 commits into from
Nov 20, 2023
Merged

Conversation

msingleton
Copy link
Member

@msingleton msingleton commented Nov 19, 2023

This updates everything using the latest react-native-builder-bob version. I stared from scratch then copied over all of our src/ files from the original.

'&'
)}');`;
// Only do this if we haven't already
const addQueryParamScript = `if (!window.location.search) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lankybutmacho there was in fact a real flicker, it was being caused by this JS injection causing an infinite loop of loading (so the loading indicator kept briefly showing up). I believe the change in an update to react-native-webview calling pushState would now trigger a reload of the page.

My fix is just to check if we've already appended the params and if so don't do it again

@msingleton msingleton merged commit 3462124 into main Nov 20, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants