-
Notifications
You must be signed in to change notification settings - Fork 110
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
chore: migrate TesterApp to react-native-test-app
#629
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
189ee24
to
3f068d0
Compare
3f068d0
to
dfcc3fd
Compare
9d17569
to
6ebfc80
Compare
6ebfc80
to
dd9502c
Compare
# Automatically convert third-party libraries to use AndroidX | ||
android.enableJetifier=true | ||
# Jetifier randomly fails on these libraries | ||
android.jetifier.ignorelist=hermes-android |
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.
AFAIK jetifier is no longer necessary for RN libraries as all moved on to AndroidX, isn't it?
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.
this is inside of TesterApp, if we can disable jetifier then lets do it 🚀
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.
if all libs are migrated what's blocking us from removing it from the template? :) probably backward compatability, i have no idea how long we should keep it 🤔
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.
For reference: react-native-community/cli#1662
# Automatically convert third-party libraries to use AndroidX | ||
android.enableJetifier=true | ||
# Jetifier randomly fails on these libraries | ||
android.jetifier.ignorelist=hermes-android |
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.
this is inside of TesterApp, if we can disable jetifier then lets do it 🚀
Needed to add a bootstrap HOC as a workaround for development - apparently anything done before registering the main component causes native modules initialization to fail for some reason? |
@tido64 hey, thanks for looking into this 🙏 did you restart the dev server after reverting the latest commit? This issue seems to only happen on the first load when the dev server needs to bundle everything from scratch. Here's some screenshots from the app without the latest commit:
|
@tido64 I've narrowed it down to a more specific scenario, here are steps to repro: cd packages/TesterApp
# start a fresh instance of dev-server
pnpm start
# in a different pane/window
pnpm android First load of the newly installed app should cause the issue as shown above upon finish bundling (the one with AsyncStorage being null) I've also confirmed that iOS is unaffected, this is only on Android |
Both release modes are working now:
The commands are quite long in |
Added script: |
810d8a9
to
d2f7f38
Compare
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.
GJ! small nits, except for that I think we finally got this ready to be merged 💪
9cc593a
to
400213d
Compare
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.
LGTM 🎉
TODO:
app.json
e.g. New Architecture, build modes, schemas.Summary
In this Pull Request I've migrated
TesterApp
toreact-native-test-app
.Test plan
App should work in the same way as before.