react-native-cooey
v1.0.28
Published
## Getting started
Downloads
7
Readme
react-native-cooey
Getting started
$ npm install react-native-cooey --save
Mostly automatic installation
$ react-native link react-native-cooey
Manual installation
iOS
- In XCode, in the project navigator, right click
Libraries
➜Add Files to [your project's name]
- Go to
node_modules
➜react-native-cooey
and addRNCooey.xcodeproj
- In XCode, in the project navigator, select your project. Add
libRNCooey.a
to your project'sBuild Phases
➜Link Binary With Libraries
- Run your project (
Cmd+R
)<
Android
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
import com.reactlibrary.RNCooeyPackage;
to the imports at the top of the file - Add
new RNCooeyPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-cooey' project(':react-native-cooey').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cooey/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-cooey')
##Addtional Steps
###iOS Drag the VoiceLibrary.framework from node_modules/react-native-cooey/ios and add it to the embbed-frameworks under Target settings. Add the VoiceLibrary.framework under link frameworks and libraries section under Target settings.
###Android Add the vstsGradleAccessToken=yourToken in gradle.properties.
Usage
import { VoiceBPMonitor, CooeyEvents} from 'react-native-cooey';
CooeyEvents is event emitter module where you can subscribe events like voice_bp_battery, voice_bp_connection, voice_bp_results etc.
// TODO: What to do with the module?
Adding Weighing scale support.
Adding Glucometer support.