React Native module for iOS & Android to receive compass heading
npm install react-native-compass-heading
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();
};
}, []);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library