Skip to content

chasing/react-native-compass-heading

 
 

Repository files navigation

react-native-compass-heading

React Native module for iOS & Android to receive compass heading

Installation

npm 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

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 47.3%
  • Objective-C++ 16.5%
  • Ruby 12.6%
  • Objective-C 9.3%
  • TypeScript 7.4%
  • JavaScript 6.3%
  • Other 0.6%