Ada React Native SDK
Go here for client-facing docs.
Prerequisites
You will need to have the below installed in order to run/compile the code
- Java JDK - Follow Expo's Guide
- ** Note: Watchman is used for hot-reloading changes. This appears to break this application. For the Java JDK step, ignore the watchman step **
- Ruby 3.2.0
- XCode - Latest (get this from the App Store)
- If you installed xCode command line tools before xCode you may need to run
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
- If you installed xCode command line tools before xCode you may need to run
- Android Studio - Latest
- Node 20.x.x
- Ensure you download an iOS and/or an Android simulator in xCode/Android Studio and have them running.
Add the following to your PATH in bash (.profile) or zsh (.zshrc)
export ANDROID_HOME="/Users/<your mac user folder here>/Library/Android/sdk"
PATH="$PATH:${ANDROID_HOME}/platform-tools/"
Local Development
- Open a terminal inside the
samplefolder - Run
npm run install-local-package. This will install all needed modules including our SDK from within your local machine (allowing local development) - If you want to run Android type
npm run androidor if you want to run iOS typenpm run ios
NOTE: If you are using a production AI Agent - ensure you add http://localhost:8081 to your approved domains for it to allow the page to render.
Architecture
See the Embed README for information about architecture.
Deploying to production
-
Update the version number in the package.json file by incrementing the version value by 1 on the least significant value (eg. if version is 0.0.1, update it to 0.0.2)
-
Get your PR reviewed and then squash and merge it to
master. Merging your PR will automatically trigger the deploy to npm