Coder Social home page Coder Social logo

ramirezjag00 / react-native-ts-template Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.69 MB

My React Native Template

License: MIT License

JavaScript 8.97% TypeScript 8.35% Java 30.34% Ruby 39.05% Objective-C 9.78% Shell 0.31% Objective-C++ 3.19%
react-native typescript jsx-transform eslint tslint prettier path-alias husky lint-staged hermes

react-native-ts-template's Introduction

React Native TS Template

Requirements

  nvm install 18.17.0
  nvm alias default 18.17.0
  npm i -g @react-native-community/cli yarn

Template Usage:

npx react-native init appnamehere --template https://github.com/ramirezjag00/react-native-ts-template.git 

Usage with older versions of React Native

e.g. [email protected] add #v0.1.0

npx react-native init appnamehere --template https://github.com/ramirezjag00/react-native-ts-template.git#v0.1.0

See the below table to find out which version of the template to use.

React Native <=> Template Version

React Native Template
0.72 v0.6.*
0.71 v0.5.*
0.70.6 v0.4.*
0.70 v0.3.*
0.69 v0.2.*
0.68 v0.1.0

Template Set up

  • react v18.2.0
  • react-native v0.72.4
  • typescript v4.8.4
  • node 18+ engine
  • yarn 3.6.3 package manager
  • new JSX transform (no need for React import)
  • Hermes enabled for iOS and Android
  • dev tooling - make sure to read about the rules in config files of the following plugins/tools as you won't be able to commit if there's any error/warning in staged files
    • eslint
    • tslint
    • prettier
    • path alias (check babel.config.js/alias or tsconfig.json/paths)
    • husky
    • lint-staged
    • github
      • CODEOWNERS template
      • PR template
      • Issue template
      • actions for PRs
        • eslint checker
        • prettier checker
        • tsc checker
        • test checker
    • fastlane
      • bump versions (ios/android)
      • build android debug apk
      • notify and upload android apk to slack / telegram
      • github actions integration (optional)
      • interactive options (WIP)

Notes

react-native-ts-template's People

Contributors

ramirezjag00 avatar

Watchers

 avatar

react-native-ts-template'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.