react-native-add-image
v1.0.9
Published
Pops up a dialog with the upload option or take photo, and cancel as well.
Downloads
19
Readme
react-native-add-image
Pops up a dialog with the upload option or take photo, and cancel as well. Under the hood we are using the react-native-image-picker package and its two main functions: launchCamera and launchImageLibrary.
Install
Install with npm:
npm install react-native-add-image
Usage
import useAddImage from "react-native-add-image"
const {handleShowImagePicker} = useAddImage();
handleShowImagePicker((response) => {
// DO THINGS
})
See the code base here
See Code page.
Contributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
License
MIT©