react-native-permissions
Advanced tools
Comparing version 1.0.6 to 1.1.0
@@ -23,2 +23,4 @@ // @flow | ||
'speechRecognition', | ||
'mediaLibrary', | ||
'motion' | ||
] | ||
@@ -25,0 +27,0 @@ |
{ | ||
"name": "react-native-permissions", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"description": "Check user permissions in React Native", | ||
@@ -5,0 +5,0 @@ "author": "Yonah Forst <yonaforst@hotmail.com>", |
@@ -38,3 +38,3 @@ # ☝🏼 React Native Permissions | ||
_📌 Don't forget to add permissions to `AndroidManifest.xml` for android and | ||
`Info.plist` for iOS (Xcode >= 8). See notes below for more details._ | ||
`Info.plist` for iOS (Xcode >= 8). See [iOS Notes](#ios-notes) or [Android Notes](#android-notes) for more details._ | ||
@@ -71,2 +71,4 @@ ### Additional iOS setup | ||
import Permissions from 'react-native-permissions' | ||
// OR const Permissions = require('react-native-permissions').default | ||
// if you use CommonJS module system | ||
@@ -142,3 +144,3 @@ //... | ||
| `authorized` | User has authorized this permission | | ||
| `denied` | User has denied this permission at least once. On iOS this means that the user will not be prompted again. Android users can be promted multiple times until they select 'Never ask me again' | | ||
| `denied` | User has denied this permission at least once. On iOS this means that the user will not be prompted again. Android users can be prompted multiple times until they select 'Never ask me again' | | ||
| `restricted` | **iOS** - this means user is not able to grant this permission, either because it's not supported by the device or because it has been blocked by parental controls. **Android** - this means that the user has selected 'Never ask me again' while denying permission | | ||
@@ -164,2 +166,4 @@ | `undetermined` | User has not yet been prompted with a permission dialog | | ||
| Speech Recognition | `speechRecognition` | ✔️ | ❌ | | ||
| mediaLibrary | `mediaLibrary` | ✔️ | ❌ | | ||
| Motion Activity | `motion` | ✔️ | ❌ | | ||
| Storage | `storage` | ❌️ | ✔ | | ||
@@ -191,2 +195,3 @@ | Phone Call | `callPhone` | ❌️ | ✔ | | ||
`alert`, `badge` and `sound` (default requests all three). | ||
* If you are not requesting mediaLibrary then you can remove MediaPlayer.framework from the xcode project | ||
@@ -244,3 +249,6 @@ ```js | ||
<string>Some description</string> | ||
``` | ||
<key>NSAppleMusicUsageDescription</key> | ||
<string>Some description</string> | ||
<key>NSMotionUsageDescription</key> | ||
<string>Some description</string> | ||
@@ -255,3 +263,3 @@ This is required because during the phase of processing in the App Store | ||
You can find more informations about this issue in #46. | ||
You can find more information about this issue in #46. | ||
@@ -258,0 +266,0 @@ ### Android Notes |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
109311
43
185
315
1