UNPKG

react-native-permission-handler-wrapper

Version:

A lightweight and reusable React Native wrapper component to handle runtime permissions like camera, location, photo library, and notifications — with built-in UI fallback for denied or blocked states.

11 lines (8 loc) 292 B
import React from 'react'; type PermissionType = 'camera' | 'location' | 'photo' | 'notification'; interface PermissionHandlerProps { type: PermissionType; children: React.ReactNode; } declare const PermissionHandler: React.FC<PermissionHandlerProps>; export { PermissionHandler };