Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,21 @@

A simple and easy to use library for listening to location permission changes. This only works for iOS.


## Getting started

```
$ npm install react-native-location-permissions --save
$ react-native link
```
`yarn add react-native-location-permissions`

or

`npm install react-native-location-permissions --save`

#### react-native 0.60 and higher
Cocoapods will take care of all the magic! You're done!

#### react-native 0.59 and lower

react-native link react-native-location-permissions

## Usage

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-location-permissions",
"version": "0.0.1",
"version": "0.0.2",
"description": "A simple and easy to use location permissions library for React Native.",
"main": "index.js",
"repository": {
Expand All @@ -16,6 +16,7 @@
"ios",
"location"
],
"homepage": "https://github.com/3sidedcube/react-native-location-permissions",
"author": "Simon Mitchell",
"license": "MIT",
"peerDependencies": {
Expand Down
22 changes: 22 additions & 0 deletions react-native-location-permissions.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
require 'json'

package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = 'react-native-location-permissions'
s.version = package['version']
s.summary = package['description']
s.description = package['description']
s.license = package['license']
s.author = package['author']
s.homepage = package['homepage']
s.source = { git: 'https://github.com/3sidedcube/react-native-location-permissions', tag: s.version }

s.requires_arc = true
s.platform = :ios, '8.0'

s.preserve_paths = 'LICENSE', 'README.md', 'package.json', 'index.js'
s.source_files = 'ios/*.{h,m}'

s.dependency 'React'
end