From 344ce0a6ee6be3119677e117939bc65ac7c4bf93 Mon Sep 17 00:00:00 2001 From: Adam Goldschmidt Date: Wed, 9 Oct 2019 17:35:40 +0300 Subject: [PATCH] fix typos and adjust README --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 6336709..17c2f34 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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