Skip to content

Templates

LeoTM edited this page Feb 6, 2023 · 95 revisions

Facebook (ts)

https://github.com/facebook/react-native/tree/main/template previously js

https://github.com/react-native-community/react-native-template-typescript

https://github.com/facebook/react-native/tree/main/packages/rn-tester ENV['USE_FRAMEWORKS']

https://github.com/facebook/flipper/tree/main/react-native/ReactNativeFlipperExample

TheCodingMachine RN boilerplate (ts)

RN template for building solid apps

https://github.com/thecodingmachine/react-native-boilerplate

Artsy (ts, nav, relay)

https://github.com/artsy/react-native-starter

Ignite (ts, cli)

https://github.com/infinitered/ignite/tree/master/boilerplate

Structure
  • app
    • components
    • config
    • i18n
    • models?
    • navs
    • screens
    • services
      • api
      • reactotron
    • theme
      • index
      • fonts
      • colours
      • palette
      • spacing
      • timing?
      • typography
    • utils
      • storage
  • assets
    • fonts
    • images
  • bin
    • postInstall
    • setup
  • e2e
  • storybook
    • views
  • test

Storybook (ts)

https://github.com/storybookjs/react-native/tree/next-6.0/examples/native

JHipster (ejs, cli)

https://github.com/jhipster/generator-jhipster-react-native

Detox

Nx (ts, cli)

https://github.com/nrwl/nx/tree/master/packages/react-native

https://github.com/nrwl/nx-react-native

  • Super verbose structure (each module own package.json/tsconfig/etc)
  • Typical simplified proj/repo
    • @rn-app-1
    • @rn-app-2
    • @rn-shared-ui

Expo Mega Demo

https://github.com/barthap/expo-mega-demo

Polaris (js)

https://github.com/nearform/polaris

Clone this wiki locally