Skip to content

Templates

LeoTM edited this page Feb 6, 2023 · 95 revisions

More

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

TheCodingMachine RN boilerplate (ts)

RN template for building solid apps

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

RN Template (ts)

RN TS starter-kit/template (Redux Thunk + RN Nav v7)

https://github.com/AmitM30/react-native-typescript-boilerplate

Artsy (ts, nav, relay)

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

Testers

Facebook RNTester (js, ENV['USE_FRAMEWORKS'])

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/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

Polaris (js)


https://github.com/nearform/polaris

Clone this wiki locally