Skip to content

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.

Gaspard-Bruno/react-native-add-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

React Native Add Image

MIT License GitHub last commit

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.

Getting Started

Requirements

react-native-image-picker

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

Install

yarn add react-native-add-image

or

npm install react-native-add-image

Usage

Constants

import useAddImage from 'react-native-add-image'

const { handleShowImagePicker } = useAddImage()

handleShowImagePicker((response) => {
  // Your code goes here
})

Roadmap

There is nothing currently in the roadmap but any suggestions are welcome!

Contributing

Pull requests are welcome! Feel free to open issues and submit PRs, we will review them and answer back as fast as possible.

🚀 Authors

About

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.

Resources

Stars

Watchers

Forks

Packages

No packages published