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
This flag is suggested by the react-native team to speed up native build phases. This is due to the fact that, when building an Android app locally, it builds all the 4 supported ABIs (i.e. armeabi-v7a, arm64-v8a, x86 and x86_64. However when building and testing locally on an emulator or physical device we don't need all of them.
Motivation
This should reduce the native build time by a ~75% factor. (ref)
Suggested Implementation
Add an executor option flag (e.g. activeArchOnly) that passes the --active-arch-only argument to react-native CLI.
Alternate Implementations
Use the nx:run-commands executor with the command react-native run-android --active-arch-only.
For example my project.json looks like this:
This solves issue nrwl#15045 and adds the possibility to pass as argument to React Native CLI's
run-android the flag --active-arch-only to only build for the current architecture, reducing native
build times by up to 75%.
closednrwl#15045
Description
This flag is suggested by the react-native team to speed up native build phases. This is due to the fact that, when building an Android app locally, it builds all the 4 supported ABIs (i.e.
armeabi-v7a
,arm64-v8a
,x86
andx86_64
. However when building and testing locally on an emulator or physical device we don't need all of them.Motivation
This should reduce the native build time by a ~75% factor. (ref)
Suggested Implementation
Add an executor option flag (e.g.
activeArchOnly
) that passes the--active-arch-only
argument to react-native CLI.Alternate Implementations
Use the
nx:run-commands
executor with the commandreact-native run-android --active-arch-only
.For example my project.json looks like this:
The text was updated successfully, but these errors were encountered: