GithubHelp home page GithubHelp logo

t18n / react-native-cross-platform-starter Goto Github PK

View Code? Open in Web Editor NEW
128.0 8.0 11.0 2.58 MB

One codebase to build for iOS, Android, Web and Desktop with React-Native

Home Page: https://react-native-starter.netlify.app/

License: MIT License

JavaScript 2.94% Starlark 0.36% Java 1.29% TypeScript 94.29% Ruby 0.14% Objective-C 0.86% HTML 0.08% Shell 0.05%
cross-platform react-native react-native-web electron webpack-5 redux-toolkit i18next ui-themes flipper typescript deep-linking react-navigation-v5 jest

react-native-cross-platform-starter's Introduction

React Native Cross-platform Apps

Production ready starter to build cross platform app with React Native.

Getting started

  • git clone [email protected]:turbothinh/react-native-cross-platform-starter.git && cd react-native-cross-platform-starter && yarn && yarn app:dep
  • Run the app: On terminal 1, run packager with yarn app:start. On terminal 2, run yarn ios or yarn android for respective platform. Don't run both commands at the same time.
  • Run on web: Run yarn web:dev
  • Run on desktop: yarn electron

Set you your brand

  • Change project name: Inside root folder, run npx react-native-rename <your-new-project-name> to rename the app
  • With your IDE, global search and replace rnStarter
  • Change project icon: Replace the icon.png and logo.png inside public/assets folder with your own assets. Then run yarn generate:icon && yarn generate:bootsplash

Set up deep linking

Development

Debug app with Flipper

This project comes with some Flipper integrations by default. You should install Flipper for desktop together with these plugins for development:

Debug app on web

For development on the web, you can also install Redux-Debugger Chrome extension

Tool recommendations

  • Fastlane
  • Codepush

Features

  • Platforms
    • Run on iOS with react-native
    • Run on Android with react-native
    • Run on web with react-native-web
    • Run on desktop with electron
  • Development
    • Testing with Jest'
    • Absolute import paths
    • Webpack loaders for JS, TS, fonts, files included
    • Native debuggers with Flipper: reactotron, redux-debugger, etc
    • Redux debuggger for web
  • Design
    • Design system with Dark mode
    • Icons with eva-icons
    • Render semantic tags like H1, H2, H3 tag on web for better SEO
  • Libraries
    • Redux + Redux-Toolkit for state management + Persist-storage
    • i18n with i18next
    • Tab navigation with react-navigation
    • Deep linking

Contribution

I do accept PRs, so please feel free to create PRs. It is prefered that the commits are following Conventional Commit

License

This project is licensed under MIT License.

react-native-cross-platform-starter's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-native-cross-platform-starter's Issues

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.