react-native-photo-upload icon indicating copy to clipboard operation
react-native-photo-upload copied to clipboard

Show Activity Indicator while image is being uploaded

Open sahil-innostax opened this issue 9 years ago • 10 comments

sahil-innostax avatar Aug 03 '17 11:08 sahil-innostax

A large size image takes times to upload so i want to show an Activity Indicator from the time when image is selected to the time when upload completes.

sahil-innostax avatar Aug 03 '17 11:08 sahil-innostax

noted, will be added in next release. Thanks

omarkhaled11 avatar Aug 03 '17 11:08 omarkhaled11

Thanks

sahil-innostax avatar Aug 03 '17 11:08 sahil-innostax

i also tried to use "photoPickerTitle" as < PhotoUpload photoPickerTitle="Test" >< Image / >< /PhotoUpload > but it didn't work. Am i missing something ?

sahil-innostax avatar Aug 03 '17 11:08 sahil-innostax

yes it's actually 'pickerTitle' that is being used. I just noticed that it's a typo in the Readme and the default props. will update it soon

omarkhaled11 avatar Aug 03 '17 11:08 omarkhaled11

It worked.Thanks

sahil-innostax avatar Aug 03 '17 11:08 sahil-innostax

+1

megamind2301 avatar Aug 25 '17 16:08 megamind2301

@omarkhaled11 Please add this feature asap

anishtr4 avatar Oct 26 '17 18:10 anishtr4

I think with the life cycle methods I added in #22 its very simple to accomplish this. Use onStart and onRender. See #22

djalmaaraujo avatar Jan 14 '18 15:01 djalmaaraujo

This issue is closed because now you can easily use lifecycle methods to accomplish Loading states.

For example, you can use: onStart to initiate the loading component and onRender to remove the spinner.

djalmaaraujo avatar Jan 15 '18 13:01 djalmaaraujo