Created
September 3, 2021 08:58
-
-
Save warodri-sendbird/ca0d119667480ef0e6b2cf2258fcddd7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const permission = await check(PERMISSIONS.ANDROID.READ_EXTERNAL_STORAGE); | |
if (permission !== RESULTS.GRANTED) { | |
const result = await request(PERMISSIONS.ANDROID.READ_EXTERNAL_STORAGE); | |
if (result !== RESULTS.GRANTED) { | |
throw new Error('Please allow the storage access permission request.'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment