0.1.5 • Published 3 years ago

react-native-permission-item v0.1.5

Weekly downloads
24
License
MIT
Repository
github
Last release
3 years ago

React Native Permission Item

npm version npm Platform - Android and iOS License: MIT styled with prettier

Installation

Add the dependency:

npm i react-native-permission-item

Peer Dependencies

"@freakycoder/react-native-bounceable": ">= 0.2.4"

Usage

Import

import PermissionItem from "react-native-permission-item";

Fundamental Usage

<PermissionItem
  title="Location Permission"
  isGranted={isLocPermGranted}
  source={require("./assets/permissions/map.png")}
  description="We need this permission for the geolocation based app to function functionally"
  onPress={this.handleRequestLocPermission}
/>

Example Project 😍

You can checkout the example project 🥰

Simply run

  • npm i
  • react-native run-ios/android

should work of the example project.

Configuration - Props

Fundamentals

PropertyTypeDefaultDescription
titlestringundefinedchange the title
descriptionstringundefinedchange the descrition
sourceImageundefinedset your own image
isGrantedbooleanfalseset and change the granted or not button text
onPressfunctionundefinedset your own logic for the button functionality when it is pressed

Future Plans

  • LICENSE
  • Write an article about the lib on Medium

Change Log

Change log will be here !

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Permission Item is available under the MIT license. See the LICENSE file for more info.