Picovoice Platform — React Native Quick Start
- yarn or npm
- Android SDK 16+
- JDK 8+
- Xcode 9+
Refer to React Native's environment setup page for specifics on how to prepare your machine for React Native development.
- React Native 0.62.2+
- Android 4.1+ (API 16+)
- iOS 9.0+
Cloning the Picovoice Repository
If using SSH, clone the Picovoice repository with:
git clone --recurse-submodules [email protected]:Picovoice/picovoice.git
If using HTTPS, then type:
git clone --recurse-submodules https://github.com/Picovoice/picovoice.git
Running on Android
cd demo/react-nativeyarn android-install # sets up environmentyarn android-run # builds and deploys to Android
Running on iOS
cd demo/react-nativeyarn ios-install # sets up environmentyarn ios-run # builds and deploys to iOS
The demo application listens for you to way the wake word "Porcupine" and then listens for follow-on commands from the "SmartLighting" Rhino context. For instance, you can say:
Porcupine, turn on the kitchen lights.
The full list of supported commands are available here.