react-native-template-new-architecture icon indicating copy to clipboard operation
react-native-template-new-architecture copied to clipboard

React Native 0.71.12 ⚑ M1, Ubuntu πŸ’» Hermes βš™οΈ Fabric πŸš… Turbo Modules πŸ’¨ TypeScript 5 βœ… Gradle 7.6, JDK 19, NDK 25 🍎 Xcode 15b, Sonoma 14b, Ruby 3 πŸ’Ž Bison 2.3 🦬 ccache ♻️ Yarn 4rc πŸ“¦ ESLint 🧹...

React Native Template / Boilerplate

Bleeding πŸ”ͺ Edge πŸŒ‰ Nightlymare πŸŒƒ Edition

β€œβ€œβ€ΜΏ ΜΏ ΜΏ ΜΏ ̿’̿’̡͇̿̿з=(*β–½*)=Ξ΅/Μ΅Ν‡ΜΏΜΏ/ΜΏ ΜΏ ΜΏ ΜΏ ΜΏβ€™β€œβ€œ
IDKFA

NPM RN pkg ver TypeScript Linter Formatter: prettier CI Maintenance Docs Project

Android iOS
Android iOS

Setup

Fresh M1/M2

Yarn v3

Upgrading from classic v1

cd ~
yarn set version berry

canary v4 🚧

Install

yarn # 🍺 version
yarn setup # πŸ€– versioned version 

https://github.com/leotm/react-native-template-new-architecture/blob/849ac8ff8512edbf51f580b4e85277456566a034/package.json#L146

More

Start

yarn start

Silicon (M1/M2) Macs

iOS (arm64)

cd ios
pod install
..
yarn ios

Or iOS (Intel x86_64)

Android

NDK

Fat M1 components: ndk-build, LLVM, CMake, Make, Python, Ninja, shader-tools, simpleperf - yasm remaining

Setup

Building-from-source#prerequisites, but with NDK 25.0.8775105

# android/local.properties
sdk.dir=/Users/<user>/Library/Android/sdk
ndk.dir=/Users/<user>/Library/Android/sdk/ndk/25.0.8775105

Strip: rcX suffix / (trailing) spaces / final final linebreak - otherwise fcntl(): Bad file descriptor

Android Studio

Setup

Open Android Studio - Preview release - Canary build

yarn android --active-arch-only

Troubleshooting

Storybook v6 beta

https://github.com/leotm/react-native-template-new-architecture/blob/01f1c9864f55367004effbe26d3f33590784704b/src/index.tsx#L132

Soon: v6 rn storybook server

Storybook v5

https://github.com/leotm/react-native-template-new-architecture/blob/01f1c9864f55367004effbe26d3f33590784704b/metro.config.js#L16

  • https://github.com/facebook/hermes/issues/135
  • https://github.com/facebook/react-native/issues/31969
# @storybook/react-native-server v5
yarn storybook
yarn <android/ios>

Node

With ts-node and curveball

yarn server

Deno

brew install deno
yarn deno

License: MIT