Auxiliary Methods

Introduction

Auxiliary methods allow you to get the status of user permissions during a session.

Checking permissions

Check a permission status by invoking arePermissionsEnabled async function. This will return a boolean:

import SmsPngmeAndroid, { arePermissionsEnabled } from '@pngme/react-native-sms-pngme-android';

const testFunction = async() => {
    const areThey = await arePermissionsEnabled();
    Alert.alert("Result", areThey.toString());
}

Did this page help you?