New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@connected-home/react-native-geolocation

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@connected-home/react-native-geolocation

Basic geolocation + geofencing. Delegates to react-native-background-geolocation for iOS.

  • 1.5.13
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

react-native-geolocation

Getting started

$ npm install react-native-geolocation --save

Mostly automatic installation

$ react-native link react-native-geolocation

Android
  1. Open up android/app/src/main/java/[...]/MainActivity.java
  • Add import com.reactlibrary.RNGeolocationPackage; to the imports at the top of the file
  • Add new RNGeolocationPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':react-native-geolocation'
    project(':react-native-geolocation').projectDir = new File(rootProject.projectDir, 	'../node_modules/react-native-geolocation/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle:
      compile project(':react-native-geolocation')
    

Usage

import RNGeolocation from 'react-native-geolocation';

// TODO: What to do with the module?
RNGeolocation;

Keywords

FAQs

Package last updated on 15 May 2023

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc