React Native package that adds a 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.
react-native-image-picker is a peer dependency for this package that you'll need to add to your project.
To install these dependencies run the following command:
yarn add react-native-image-picker
or
npm install react-native-image-picker
yarn add react-native-add-image
or
npm install react-native-add-image
import useAddImage from 'react-native-add-image'
const { handleShowImagePicker } = useAddImage()
handleShowImagePicker((response) => {
// Your code goes here
})
There is nothing currently in the roadmap but any suggestions are welcome!
Pull requests are welcome! Feel free to open issues and submit PRs, we will review them and answer back as fast as possible.