Coder Social home page Coder Social logo

ssourabh58 / reactnative-nextjs-template Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomsoderlund/reactnative-nextjs-template

0.0 0.0 0.0 1.96 MB

Build native apps (iOS/Android/Windows/macOS) and an SEO-optimized web app from the same React codebase

Home Page: https://reactnative-nextjs-template.vercel.app/

License: Other

JavaScript 8.12% TypeScript 91.88%

reactnative-nextjs-template's Introduction

reactnative-nextjs-template

NOTE: Work in progress until version is 1.0.0+

Build native apps (iOS/Android/Windows/macOS) and an SEO-optimized web app from the same React codebase, using React Native/Expo and Next.js

(Created with npx create-next-app -e with-expo [PROJECTNAME])

reactnative-nextjs-template demo on phone

Note: this is my v5 boilerplate for React apps. See also my Next.js + Firebase boilerplate.

Support this project

Did you or your company find reactnative-nextjs-template useful? Please consider giving a small donation, it helps me spend more time on open-source projects:

Support Tom on Ko-Fi.com

Why is this awesome?

This allows you to build both a native app for iOS/Android/Windows/macOS/etc, as well as an SEO-optimized web app from same codebase.

  • Server-side rendering (SSR)
  • SEO: Semantic tags e.g. H1, H2, H3
  • SEO: Page metadata support
  • Header (from react-native-elements)
  • Navigation
  • Flexible CSS solution
  • Font support
  • SVG support
  • Video player

Demo

See reactnative-nextjs-template running on Vercel here.

reactnative-nextjs-template demo on phone

Deploying

Setup and deploy your own project using this template with Vercel:

Deploy with Vercel

How to use

Note: If you set up your project using the Deploy button above, you only need to clone your own repo instead of this repository.

Clone this repository:

git clone https://github.com/tomsoderlund/reactnative-nextjs-template.git [MY_APP]

Remove the .git folder since you want to create a new repository

rm -rf .git

Install dependencies:

cd [MY_APP]
yarn  # or npm install

Start it in Next.js/web mode by:

yarn dev

…then navigate to http://localhost:3005/

Start Expo for native apps:

yarn dev:native

In production:

yarn build
yarn start

Modifying the app to your needs

Change app name

Do search/replace for “reactnative-nextjs-template” to something else.

Change name in public/manifest.json

Change port number

Do search/replace for “3005” to something else.

Read more

reactnative-nextjs-template's People

Contributors

tomsoderlund avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.