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