react-native-task-description
v1.0.1
Published
Android TaskDescription setting
Downloads
6
Maintainers
Readme
react-native-task-description ·
Getting started
$ npm i react-native-task-description
Mostly automatic installation (RN < 60)
$ react-native link react-native-task-description
Manual installation (RN < 60)
Android
- Open up
android/app/src/main/java/com/moh3n95/taskDescription/MainActivity.java
- Add
import com.moh3n95.taskDescription.RNTaskDescriptionPackage;
to the imports at the top of the file - Add
new RNTaskDescriptionPackage()
to the list returned by thegetPackages()
method
- Append the following lines to
android/settings.gradle
:include ':react-native-task-description' project(':react-native-task-description').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-task-description/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-task-description')
Usage
import setTaskDescription from 'react-native-task-description';
setTaskDescription({
color: "red",
label: "AppLabel"
})
Contributing
Thank you for your interest in contributing! Please feel free to put up a PR for any issue or feature request.
Give me a Star
If you think this project is helpful just give me a ⭐️ Star is enough because i don't drink coffee 😃
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Author
Made with ❤️ by Mohsen Madani.