Skip to content

fix typos and adjust README #72

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

![screenshot](http://g.recordit.co/egzm6lL96l.gif)

This component handles all the hassle in dealing with photos in react native, it's built on top of `react-native-image-picker`, `react-native-image-resizer` and `react-native-fs`
it takes an image component and upon click, you get the image picker prompt, get the base64 string of the image and the image source changes to whatever image was picked.
This component handles all the hassle in dealing with photos in React Native.
It's built on top of `react-native-image-picker`, `react-native-image-resizer` and `react-native-fs`.
The component accepts an image component and upon click, an image picker prompt opens up. The base64 string of the image and the image source changes accordingly to the image that was picked.

## Installing

Expand Down Expand Up @@ -76,9 +77,10 @@ check the docs of each library on how to link manually.

## Usage

Wrap your default image inside the PhotoUpload component, the component wraps the image with TouchableOpacity, on press it will trigger the image picker prompt. after selecting a new image from the picker, the image source will get replaced with the new image base64 string as uri
All you need to do is to wrap your default image inside the PhotoUpload component.
The component then wraps the image with TouchableOpacity - which triggers the image picker prompt on press. After selecting a new image from the picker, the image source gets replaced with the new image base64 string as uri.

```
```javascript
<PhotoUpload>
<Image
source={{
Expand All @@ -90,7 +92,7 @@ check the docs of each library on how to link manually.

## Example

```
```javascript
import { Image } from 'react-native'
import PhotoUpload from 'react-native-photo-upload'

Expand Down