Skip to content

Templates

LeoTM edited this page Mar 10, 2022 · 68 revisions

Templates

Bleeding Edge Nightly (this)

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

meta territory ♾️

Facebook (js)

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

Flipper (js)

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

Community (ts)

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

Artsy (ts, nav, relay)

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

Testers

Facebook RNTester (js)

https://github.com/facebook/react-native/tree/main/packages/rn-tester

Re.Pack (js)

https://github.com/callstack/repack/tree/main/packages/TesterApp

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

Expo Mega Demo

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

Detox


Nx (ts, cli)

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

Polaris (js)

https://github.com/nearform/polaris

Clone this wiki locally