Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/voiceittech/voiceit2-react-native-demo
https://github.com/voiceittech/voiceit2-react-native-demo
Last synced: 4 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/voiceittech/voiceit2-react-native-demo
- Owner: voiceittech
- Created: 2019-02-27T17:01:12.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-02-09T03:31:42.000Z (almost 2 years ago)
- Last Synced: 2023-03-09T08:19:57.938Z (over 1 year ago)
- Language: JavaScript
- Size: 95.4 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native Demo
## Getting started
Clone the Repo
- ```npm install```
- Navigate to App.js in the root folder, and change the ```options``` object with the desired entries, such as the ```api key/token, userId, content_language``` etc
```
const options = {
user_id: "USER_ID_HERE",
group_id: "GROUP_ID_HERE",
content_language: "CONTENT_LANGUAGE_HERE",
phrase: "PHRASE",
apiKey: "API_KEY_HERE",
apiToken: "API_TOKEN_HERE",
liveness: false
};
```## Troubleshooting and Build Process
####
#### Android Debug Bridge
Adb can be a useful build tool for Android React Native development and troubleshooting. Add the following to your path by exporting to bashrc (zshrc):
```
export PATH=/Users/hasssan/Library/Android/sdk/platform-tools:$PATH
```#### Running on Android Device
Make sure there is a local.properties file in the android/ directory. It should have the sdk directory:
```
sdk.dir = /Users/YOUR_USER_NAME/Library/Android/sdk
```
Connect your device and get the device id
```
adb devices
```
Use the device id to run on your physical device
```
npx react-native run-android --deviceId=DEVICE_ID
```Depending on your react version, you might need to bundle the JS side to so it can be taken in by native Android (make sure the android/app/src/main/assets folder exists):
```
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
```#### Running on IOS Device
Connect your device and unlock it
```
npx react-native run-ios --device
```- IOS Screenshot
- Android Screenshot