
Security News
MCP Community Begins Work on Official MCP Metaregistry
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
@kevinsperrine/react-native-simple-compass
Advanced tools
Simple module exposing the compass on iOS and Android
$ npm install react-native-simple-compass --save
$ react-native link react-native-simple-compass
To install with CocoaPods, add the following to your Podfile:
pod 'react-native-simple-compass', :path => '../node_modules/react-native-simple-compass'
Then run pod install and rebuild your project.
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-simple-compass
and add RNSimpleCompass.xcodeproj
libRNSimpleCompass.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<android/app/src/main/java/[...]/MainActivity.java
import com.reactlibrary.RNSimpleCompassPackage;
to the imports at the top of the filenew RNSimpleCompassPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-simple-compass'
project(':react-native-simple-compass').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-simple-compass/android')
android/app/build.gradle
:
compile project(':react-native-simple-compass')
import RNSimpleCompass from 'react-native-simple-compass';
const degree_update_rate = 3; // Number of degrees changed before the callback is triggered
RNSimpleCompass.start(degree_update_rate, degree => {
console.log('You are facing', degree);
RNSimpleCompass.stop();
});
FAQs
Simple module exposing the compass on iOS and Android
We found that @kevinsperrine/react-native-simple-compass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.
Research
Security News
Malicious npm packages posing as developer tools target macOS Cursor IDE users, stealing credentials and modifying files to gain persistent backdoor access.