Installation
Requirements
- React Native 0.81+ with the New Architecture
- Android 7+ (API 24)
- iOS 17+
Packages
Install the core, Nitro Modules and one package per language you want to highlight:
- npm
- pnpm
- yarn
- bun
npm install react-native-codepad react-native-nitro-modules react-native-codepad-lang-javascript
pnpm add react-native-codepad react-native-nitro-modules react-native-codepad-lang-javascript
yarn add react-native-codepad react-native-nitro-modules react-native-codepad-lang-javascript
bun add react-native-codepad react-native-nitro-modules react-native-codepad-lang-javascript
Language packages are named react-native-codepad-lang-<id>. The language list has all fifteen.
Rebuild
The packages carry native code, so rebuild the app after adding or removing one.
- Expo
- React Native
Expo development builds only, not Expo Go. Set the iOS deployment target to 17.0, then prebuild and run:
app.json
{
"expo": {
"plugins": [
["expo-build-properties", { "ios": { "deploymentTarget": "17.0" } }]
]
}
}
npx expo prebuild
npx expo run:ios
npx expo run:android
Autolinking does the rest. Set the iOS deployment target in the Podfile, install the pods and run:
ios/Podfile
platform :ios, min_ios_version_supported
platform :ios, '17.0'
cd ios && pod install && cd ..
npm run ios
npm run android