Luna
🌒 🌒 Luna
is a React Native
boilerplate with minimal configuration so your app can run on Android
, IOS
and Web
concurrently.
You can try the live example here.
⭐ Features
📖 Please visit the
🌒 Luna Wiki
to see why and how we decided to implement all those features.
🚀 For an advanced start, you can head to react-native-firebase-authentification-example which is built on top of Luna template
🎛 Setup
⚠️ Please be sure your environment is set up correctly for React Native CLI.
🔗 https://reactnative.dev/docs/environment-setup
We're using Github packages, so you'll need the following:
npm config set registry=http://registry.npmjs.org/
npm config set @plaut-ro:registry=https://npm.pkg.github.com/
🛸 Usage
npx react-native init MyAppName --template @plaut-ro/luna
Use the above command to start a new React Native app using this template. After that, all the commands from below are available:
npm run web
Runs the app in the web.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
npm run start
Start Metro Bundler.
npm run android
Launches the app for Android in debug mode.
npm run ios
Launches the app for IOS in debug mode.
🐛 Debugging
-
React Native CLI
This template only works with the new CLI. Please make sure that:
- your environment is set up correctly for React Native CLI.
- you have uninstalled the legacy
react-native-cli
first (npm uninstall -g react-native-cli
) for the below command to work. If you wish to not use npx, you can also install the new CLI globally (npm i -g @react-native-community/cli
oryarn global add @react-native-community/cli
).
If you tried the above and still get the @plaut-ro/luna: Not found error, please try adding the
--ignore-existing
flag to force npx to ignore any locally installed versions of the CLI and use the latest. Further information can be found here: https://github.com/react-native-community/cli#about
📃 License
📃 This project is released under the MIT License.
💻 By contributing, you agree that your contributions will be licensed under its MIT License.