React Native Wrapper for LiPHY SDK
yarn add react-native-liphy
- 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
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();
};
}, []);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT