Skip to content

m-laniakea/nix-flakes-react-native

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native via nix flakes

Want to simplify your android dev environment setup? A little bit of flakes is all it takes.

Getting started:

Make sure you have nix with nix flakes enabled.

nix develop                  # set up the dev environment. First time may take a while

Creating a new project:

npx react-native init <newProjectName>

There's an issue with init in the pinned react-native-cli, so init via npx for now

cd <project-dir>
react-native start           # allows you to run the app on your (emulated) device

Android build:

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

iOS build:

# TODO

TODO:

  • Build iOS app
  • Test on ARM and darwin systems
  • Get nix build working

About

react-native via nix flakes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages