react-native-permissions
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "react-native-permissions", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -109,2 +109,2 @@ 'use strict'; | ||
export default new ReactNativePermissions() | ||
module.exports = new ReactNativePermissions() |
@@ -16,3 +16,3 @@ # React Native Permissions | ||
####General Usage | ||
##General Usage | ||
```js | ||
@@ -74,3 +74,3 @@ const Permissions = require('react-native-permissions'); | ||
####API | ||
##API | ||
@@ -90,5 +90,5 @@ _Permission statuses_ - `authorized`, `denied`, `restricted`, or `undetermined` | ||
Note: Permission type `bluetooth` represents the status of the `CBPeripheralManager` . Note: Don't use this if you're only using `CBCentralManager` | ||
Note: Permission type `bluetooth` represents the status of the `CBPeripheralManager`. Don't use this if you're only using `CBCentralManager` | ||
#####Special cases | ||
###Special cases | ||
@@ -98,4 +98,4 @@ `requestPermission` also accepts a second parameter for types `location` and `notification`. | ||
- `notification`: the second parameter is an array with the desired alert types. Any combination of `alert`, `badge` and `sound` (default requests all three) | ||
*_example_* | ||
```js | ||
///example | ||
Permissions.requestPermission('location', 'always') | ||
@@ -119,5 +119,5 @@ .then(response => { | ||
###iOS | ||
##iOS | ||
* Run open node_modules/react-native-permissions | ||
* Drag ReactNativePermissions.xcodeproj into the Libraries group of your app's Xcode project | ||
* Add libReactNativePermissions.a to `Build Phases -> Link Binary With Libraries. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
123567