Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-native-permissions returning RNPermissions null #6

Open
3laasaleh opened this issue Jun 20, 2020 · 0 comments
Open

react-native-permissions returning RNPermissions null #6

3laasaleh opened this issue Jun 20, 2020 · 0 comments

Comments

@3laasaleh
Copy link

3laasaleh commented Jun 20, 2020

i got this error 👍

when i `m just import this line
import { PERMISSIONS, request } from 'react-native-permissions';

i added in android
manifest :
uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"
uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"
settings.gradle :
include ':react-native-permissions'
project(':react-native-permissions').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-permissions/android')
build.gardle :
dependencies {
classpath('com.android.tools.build:gradle:3.6.3')
implementation project(':react-native-permissions')
}

and in ios
podfile :
rnPrefix = "../node_modules/react-native"
permissions_path = '../node_modules/react-native-permissions/ios'
pod 'RNPermissions', :path => '../node_modules/react-native-permissions'

and i had followed all instructions on github permissions repository and still this issue is working

problem1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant