react-native-liphy
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

react-native-liphy

React Native Wrapper for LiPHY SDK

Installation

yarn add react-native-liphy

iOS

  1. Put LightFlySDK to ios/ of your react native projcet and add below line to the bottom of ios/Podfile
pod 'LightFlySDK', :path => './LightFlySDK'
  1. Run npx pod-install

  2. Add Privacy - Camera Usage Description to Info.plist

Android

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

Package Sidebar

Install

npm i react-native-liphy

Weekly Downloads

0

Version

0.3.0

License

MIT

Unpacked Size

25.7 MB

Total Files

28

Last publish

Collaborators

  • alex-tecky