Skip to content

Commencement-Technology/react-native-compass-heading

 
 

Repository files navigation

react-native-compass-heading

React Native module for iOS & Android to receive compass heading

Installation

yarn add install react-native-compass-heading

Usage

import CompassHeading from 'react-native-compass-heading';

  React.useEffect(() => {
    const degree_update_rate = 3;

    CompassHeading.start(degree_update_rate, ({heading, accuracy}) => {
      console.log('CompassHeading: ', heading, accuracy);
    });

    return () => {
      CompassHeading.stop();
    };
  }, []);

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

About

React Native module for iOS & Android to receive compass heading

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Kotlin 40.9%
  • Swift 18.1%
  • TypeScript 15.9%
  • Ruby 12.8%
  • JavaScript 9.4%
  • Objective-C++ 1.5%
  • Other 1.4%