Skip to content

Yu #1261

@batkazaya07-source

Description

@batkazaya07-source

import { PermissionsAndroid } from 'react-native';

funcion () {
const permission = await PermissionsAndroid.request(
PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
{
title: '',
message: '',
buttonNeutral: 'Ask Me Later',
buttonNegative: 'Cancel',
buttonPositive: 'OK'
}
);

  if (permission === 'denied') return;
  if (permission === 'granted') { 
       // YOUR WRITE FUNCTION HERE
  }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions