Want to simplify your android dev environment setup? A little bit of flakes is all it takes.
Make sure you have nix
with nix flakes enabled.
nix develop # set up the dev environment. First time may take a while
npx react-native init <newProjectName>
There's an issue with
init
in the pinnedreact-native-cli
, so init vianpx
for now
cd <project-dir>
react-native start # allows you to run the app on your (emulated) device
Multiple ways:
buildAndroidDebug # builds debug android apk (alias of `react-native build-android`)
react-native build-android --no-packager
cd android
./gradlew clean # optional
./gradlew build
# TODO
- Build iOS app
- Test on
ARM
anddarwin
systems - Get
nix build
working