Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.33 KB

README.md

File metadata and controls

39 lines (27 loc) · 1.33 KB

react-native-superpowered

Do not use this module yet. This comment will be removed when the module is ready.

Goal

The goal of react-native-superpowered is to use a flexible json interpreter (json.hpp) to quickly and easily add support for Superpowered's SDK in a flexible, cross-platform way.

Typical native react-native modules still require quite a bit of duplicate work, reimplementing an API in both objective-C and java.

Here, we implement only 3 things "natively," in java and objective-C

  • JSON string receiver and sender (note - soon to be updated using JSI for better performance.)
  • Microphone/input device access
  • Output device access

Everything else is done via generic json command which can be dealt with in cross-platform C++.

How to test

git clone https://github.com/cfogelklou/react-native-superpowered-test.git --recursive
cd superpowered_test
yarn install 
cd ios
pod install

Install using npm or yarn

npm install react-native-superpowered --save

Or if you're using yarn:

yarn add react-native-superpowered

It takes about 1~2 minutes to complete installation because it clones SuperpoweredSDK and json