https://github.com/evanbacon/react-native-permissions-tutorial
A tutorial on using permissions in React Native
https://github.com/evanbacon/react-native-permissions-tutorial
android app expo ios permissions react reactnative simple tutorial video
Last synced: 10 months ago
JSON representation
A tutorial on using permissions in React Native
- Host: GitHub
- URL: https://github.com/evanbacon/react-native-permissions-tutorial
- Owner: EvanBacon
- Created: 2018-11-20T09:33:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-20T09:43:16.000Z (about 7 years ago)
- Last Synced: 2025-03-19T07:32:23.692Z (10 months ago)
- Topics: android, app, expo, ios, permissions, react, reactnative, simple, tutorial, video
- Language: JavaScript
- Size: 3.91 KB
- Stars: 12
- Watchers: 2
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# React Native Permissions Tutorial
Hey guys, here is the source code from my tutorial on using Permissions in React Native with `expo-permissions`.
[](https://www.youtube.com/watch?v=-QQ4W1G9rYE)
If you found it helpful, be sure to like and subscribe 👍😁
## Quick Notes
1. On iOS and on Android, if you change a system permission the app will restart. This means there is no need to observe AppState changing.
2. The Linking API has a URI scheme for opening the settings, this is the best (really the only) way to approve a pemission that was denied.
3. Make sure to change the permission message before submitting to the App Store. This will save you from a lot of heartache in the future, be very clear about what you want to do with said permission.
4. A lot of popular apps (like Google apps) have a modal that says "... Give us permissions ..." Before actually prompting a user. The reason for this is that if the user denies the permission in this fake modal, then you can always show it to them again later. If a user actually wants to use the permission they will approve two modals. But if they don't, you can try and make the permission usage more enticing.
## Hope this Helps! 😁
* **Docs**: https://docs.expo.io/versions/latest/sdk/permissions
* **Youtube video**: https://www.youtube.com/watch?v=-QQ4W1G9rYE&feature=youtu.be
* **Reddit post**: https://www.reddit.com/r/reactnative/comments/9yeyn2/how_to_use_native_permissions_with_expo/
* **Snack**: https://snack.expo.io/@bacon/basic-permissions-example