0.3.0 • Published 3 years ago
react-native-liphy v0.3.0
react-native-liphy
React Native Wrapper for LiPHY SDK
Installation
yarn add react-native-liphy
iOS
- Put
LightFlySDK
toios/
of your react native projcet and add below line to the bottom ofios/Podfile
pod 'LightFlySDK', :path => './LightFlySDK'
Run
npx pod-install
Add
Privacy - Camera Usage Description
toInfo.plist
Android
1.
2.
3.
Usage
import Liphy from "react-native-liphy";
// ...
const [result, setResult] = React.useState();
React.useEffect(() => {
Liphy.startTracking();
const removeListener = Liphy.addEventListener((data) => {
setResult(data.lightId);
});
return () => {
removeListener();
};
}, []);
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT