0.3.0 • Published 5 years ago
react-native-liphy v0.3.0
react-native-liphy
React Native Wrapper for LiPHY SDK
Installation
yarn add react-native-liphyiOS
- Put
LightFlySDKtoios/of your react native projcet and add below line to the bottom ofios/Podfile
pod 'LightFlySDK', :path => './LightFlySDK'Run
npx pod-installAdd
Privacy - Camera Usage DescriptiontoInfo.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