🌒 Luna
is a React Native
boilerplate with minimal configuration so your app can run on Android
, IOS
and Web
cocurrently.
⚠️ Please be sure your environment is set up correctly for React Native CLI.
🔗 https://reactnative.dev/docs/environment-setup
npx react-native init MyAppName --template @notorious112/luna
Use the above command to start a new React Native app using this template. After that, all the commands from below are available:
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.
Start Metro Bundler.
Launches the app for Android in debug mode.
Launches the app for IOS in debug mode.
This template only works with the new CLI. 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 react-native-template-react- native-template-typescript: 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
📃 This project is released under the MIT License.
💻 By contributing, you agree that your contributions will be licensed under its MIT License.
⚠️ This template is currently under development, but we consider it stable.
🙏 Please feel free to try it out and open an issue if you find any problems.