https://github.com/wrathchaos/react-native-permission-item
Customizable, easy to use permission item component for React Native
https://github.com/wrathchaos/react-native-permission-item
android apple application freakycoder front-end google ios mobile mobile-app mobile-development permissions react-native reactjs
Last synced: 7 months ago
JSON representation
Customizable, easy to use permission item component for React Native
- Host: GitHub
- URL: https://github.com/wrathchaos/react-native-permission-item
- Owner: WrathChaos
- Created: 2021-02-19T10:06:42.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-02-19T13:39:49.000Z (over 4 years ago)
- Last Synced: 2025-03-05T04:35:01.760Z (7 months ago)
- Topics: android, apple, application, freakycoder, front-end, google, ios, mobile, mobile-app, mobile-development, permissions, react-native, reactjs
- Language: TypeScript
- Homepage: https://freakycoder.com
- Size: 12.1 MB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/WrathChaos/react-native-permission-item)
[](https://www.npmjs.com/package/react-native-permission-item)
[](https://www.npmjs.com/package/react-native-permission-item)

[](https://opensource.org/licenses/MIT)
[](https://github.com/prettier/prettier)
![]()
![]()
# Installation
Add the dependency:
```bash
npm i react-native-permission-item
```## Peer Dependencies
IMPORTANT! You need install them
```js
"@freakycoder/react-native-bounceable": ">= 0.2.4"
```# Usage
## Import
```jsx
import PermissionItem from "react-native-permission-item";
```## Fundamental Usage
```jsx
```
## 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
| Property | Type | Default | Description |
| ----------- | :------: | :-------: | ------------------------------------------------------------------ |
| title | string | undefined | change the title |
| description | string | undefined | change the descrition |
| source | Image | undefined | set your own image |
| isGranted | boolean | false | set and change the granted or not button text |
| onPress | function | undefined | set your own logic for the button functionality when it is pressed |## Future Plans
- [x] ~~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.