Thank you for your interest in contributing to React Native AI! This guide will help you get started.
- Bun (latest version recommended)
- React Native development environment (Android Studio, Xcode)
This is a monorepo with the following packages:
packages/apple-llm/- Apple Intelligence turbo module for iOSapps/example/- example Expo app, which also hosts the harness tests inharness/
-
Clone and install dependencies:
git clone https://github.com/callstackincubator/ai.git cd ai bun install -
Run quality checks:
bun run typecheck bun run lint
-
Test your changes:
# Run example app cd apps/example bun run start bun run ios # the example app is iOS only
- Follow existing code style and patterns
- Ensure TypeScript types are properly defined
- Run
bun run lint --fixto fix formatting issues
- Android: Use Kotlin, follow existing patterns in
packages/*/android/ - iOS: Use Swift/Objective-C++, follow existing patterns in
packages/*/ios/
Follow Conventional Commits:
feat:new featuresfix:bug fixesdocs:documentation changesrefactor:code refactoringtest:test additions/updateschore:tooling/config changes
- Fork the repository
- Create a feature branch from
main - Make your changes following the guidelines above
- Test thoroughly with both example apps
- Submit a pull request with:
- Clear description of changes
- Screenshots/videos for UI changes
- Test plan for reviewers
Build all packages
bun run --filter='@react-native-ai/*' prepareWork on specific package
cd packages/llama
bun run typecheckcd apps/example
bun run start
bun run ios- Android: Open
apps/example/androidin Android Studio - RN example app: Open
apps/example/ios/ReactNativeAI.xcworkspacein Xcode- The Apple Intelligence package is a Turbo Module - work directly from the integrated Xcode project
- Native code is in
packages/apple-llm/ios/but best developed through the example app
- Check existing issues
- Review the code of conduct
- Ask questions in pull request discussions
We appreciate all contributions, big and small! 🚀