F
This commit is contained in:
parent
4d8baf8cfa
commit
4989812de7
@ -64,7 +64,7 @@ module.exports = {
|
|||||||
'react/no-unescaped-entities': 'off',
|
'react/no-unescaped-entities': 'off',
|
||||||
// react native plugin
|
// react native plugin
|
||||||
'react-native/no-unused-styles': 'warn',
|
'react-native/no-unused-styles': 'warn',
|
||||||
'react-native/split-platform-components': 'warn',
|
'react-native/split-platform-components': 'off',
|
||||||
'react-native/no-inline-styles': 'warn',
|
'react-native/no-inline-styles': 'warn',
|
||||||
'react-native/no-color-literals': 'off',
|
'react-native/no-color-literals': 'off',
|
||||||
'react-native/no-raw-text': 'off',
|
'react-native/no-raw-text': 'off',
|
||||||
|
@ -20,6 +20,7 @@ const requestSavePermission = async (): Promise<boolean> => {
|
|||||||
if (Platform.OS !== 'android') return true;
|
if (Platform.OS !== 'android') return true;
|
||||||
|
|
||||||
const permission = PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE;
|
const permission = PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE;
|
||||||
|
if (permission == null) return false;
|
||||||
let hasPermission = await PermissionsAndroid.check(permission);
|
let hasPermission = await PermissionsAndroid.check(permission);
|
||||||
if (!hasPermission) {
|
if (!hasPermission) {
|
||||||
const permissionRequestResult = await PermissionsAndroid.request(permission);
|
const permissionRequestResult = await PermissionsAndroid.request(permission);
|
||||||
|
Loading…
Reference in New Issue
Block a user