Questions tagged [react-native-permissions]

58 questions
2
votes
0 answers

When I ask for Location permissions in Android (using React Native), permission dialog never pops up and permissions are granted automatically

I am asking for location permission for my Android React Native app. I am using the npm package: react-native-permissions. I have created a custom hook to do this. My implementation for iOS works perfect. While trying a similar approach on Android,…
Jo Momma
  • 1,126
  • 15
  • 31
2
votes
0 answers

React Native Permissions "no permission handler detected"

I am attempting to request photo library access from the user in my react-native project I am experiencing an issue where it claims that I am not providing the permission handler in my Podfile I have these lines of code in my…
2
votes
0 answers

React Native: Getting this error in Android when running the app: error: package com.beefe.permission does not exist

I am trying to implement QR Scanning for which I had to install RNCamera & react-native-permissions. After doing all that, app run successfully in iOS Simulator but in case of Android, getting the error: error: package com.beefe.permission does not…
1
vote
0 answers

react-native-permissions: RNPermissions is null in react native and expo

I've forked a repo and want to get it running, it's a react app that I'm running in Android Studio. I've tried starting the app on an emulator and on the browser and I'm getting the same error: index.ts:6 Uncaught Error: react-native-permissions:…
1
vote
0 answers

React Native: react-native-image-picker library's launchImageLibrary function is not opening the photo library

I am building an IOS application using React Native. I am now implementing a feature for my application where user has to pick a photo from the library. I am using this library, react-native-image-picker…
1
vote
0 answers

typedef redefinition with different types ('uint8_t' (aka 'unsigned char') in xcode 14

I am getting above error while running build in Xcode 14. Have tried running yarn ios as well, but that also fails with "(in target 'RCT-Folly' from project 'Pods')". Have been through many threads from past 1 week, nothing seems to work for me. I…
1
vote
0 answers

How to store Video on my device on android 11

I am trying to use https://github.com/zoontek/react-native-permissions for storing the video but my video is not getting stored and I am using android 11 I have given the READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE permission. How can I store the…
1
vote
1 answer

React Native Permission rationale not showing

I'm having a trouble with react native permission rationale. It is not showing though I already put it in my code. const rationale = { title: 'Permission', message: 'message' } const res = await…
carch
  • 217
  • 4
  • 18
1
vote
1 answer

request permission methods called until the permission is granted

I have created methods for grant the permission of location and storage read & write using the react-native-permission library. when user is deny the permission then the permission dialog is disabled. But i am trying to do that, the request methods…
vjtechno
  • 452
  • 1
  • 6
  • 16
1
vote
0 answers

"Keyboard" shows up after clicking on "allow" on contact permission

I am using "react-native-permissions" and requesting permission for CONTACTS, when the permission modal comes up and I click "allow", the keyboard shows up for no reason. I am using this versions: "react-native-permissions":…
1
vote
0 answers

Let Android Module know that some permissions are already granted on React-native class

I'm using react-native-permissions package to request some permissions in my app. When I start it , the app shows the modal to accept the requested permissions after that I call a method that requires ACCESS_FINE_LOCATION permission accepted. So…
1
vote
0 answers

react-native-beacons-manager Permissions.ACCESS_FINE_LOCATION

Using https://github.com/MacKentoch/react-native-beacons-manager I still have error in console: never_ask_again I still have Location Access Denied and don't know how to fix it. What's is wrong. My buildscript in build.gralde : buildscript { ext…
1
vote
1 answer

Are there any trade-offs between react-native-permissions and expo-permission?

I'm trying to select between react-native-permissions or expo-permissions for my project. They both work on iOS and Android but expo-permissions code is more concise. Other than that, are there any trade-offs between the two that I should be aware…
0
votes
1 answer

TurboModuleRegistry.getEnforcing(...): 'RNPermissionsModule' could not be found., when using react-native-permissions and expo

I have a React Native app built using Expo and I am trying to configure permissions using react-native-permissions library. To test the app I am using Expo Go on my iPhone. When running my react native app on Expo Go, I get the following errors: …
0
votes
0 answers

react native android files and media permissions not showing in settings

Android is not showing permissions in settings also I have used react-native-permissions for this React-native-permissions : version => "^3.8.3" Android Version => "13" Model Name => Samsung A53s and Redmi Power 10 I have use this also in android…