Answers for "rnimagepicker error This library does not require Manifest.permission.CAMERA, if you add this permission in manifest then you have to obtain the same."

0

rnimagepicker error This library does not require Manifest.permission.CAMERA, if you add this permission in manifest then you have to obtain the same.

const requestCameraPermission = async () => {
  try {
    const granted = await PermissionsAndroid.request(
      PermissionsAndroid.PERMISSIONS.CAMERA,
      {
        title: "App Camera Permission",
        message:"App needs access to your camera "
        buttonNeutral: "Ask Me Later",
        buttonNegative: "Cancel",
        buttonPositive: "OK"
      }
    );
    if (granted === PermissionsAndroid.RESULTS.GRANTED) {
      console.log("Camera permission given");
    } else {
      console.log("Camera permission denied");
    }
  } catch (err) {
    console.warn(err);
  }
};
Posted by: Guest on January-04-2021

Code answers related to "rnimagepicker error This library does not require Manifest.permission.CAMERA, if you add this permission in manifest then you have to obtain the same."

Browse Popular Code Answers by Language