LunatiqueCoder / luna

Luna - a React Native + Next.js template. Built with TypeScript :heart:
https://luna-gamma.vercel.app/
MIT License
265 stars 17 forks source link
boilerplate next nextjs react react-native react-native-web reactjs tamagui typescript

Logo

reactnative Expo nextjs platforms GitHub top language ci GitHub npm

πŸŒ’ Luna

πŸŒ’ Luna is a React Native and Next.js boilerplate 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, but currently without Next.js, 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 \ πŸ”— https://reactnative.dev/docs/environment-setup

πŸ›Έ Usage

You can create a new project interactively by running:

yarn create luna-app

image

After that, all the commands from below are available:

yarn start

Start Metro Bundler. After that, you can press i or a to run the app on iOS or Android simulator respectively.

Runs the app in the web in development mode.\ 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.

yarn build

Builds the web app for production with Next.js.

yarn next-start

Runs the web app in production mode with Next.js. \ Open http://localhost:3000 to view it in the browser. \ Note: You have to run yarn build first!

πŸͺ² Debugging

If you tried the above and still get the @criszz77/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.

πŸ† Sponsors

jetbrains100