Thank you for your interest in contributing! This guide will help you get started.
-
Clone the repository:
git clone https://github.com/crafter-station/rn-ai-elements.git cd rn-ai-elements -
Install dependencies:
pnpm install
-
Build all packages:
pnpm turbo build
-
Run the example app:
cd apps/example npx expo start
packages/elements/— Core component librarypackages/cli/— Copy-paste CLIapps/example/— Expo example appapps/docs/— Documentation site
- Create a branch from
main - Make your changes
- Add a changeset:
pnpm changeset - Run checks:
pnpm turbo lint typecheck test - Open a pull request
- Use
StyleSheet.create()for all styles - Use
useAIElementsTheme()for theming — no hardcoded colors - Export all prop types
- Wrap components in
React.memowhen beneficial - Use
lucide-react-nativefor icons
- Create the component in the appropriate category folder (
chatbot/,code/,voice/,workflow/) - Export from the category's
index.ts - Export from
src/index.ts - Add to the example app
- Add tests
Use Conventional Commits:
feat:new featurefix:bug fixdocs:documentationrefactor:code refactoringtest:adding testschore:maintenance
By contributing, you agree that your contributions will be licensed under the Apache-2.0 License.