1

I want to pick an image from gallery and copy that image to the currently running app’s installation directory using react-native.

Vipul Kumar
  • 893
  • 9
  • 19
Vinay N
  • 249
  • 1
  • 8
  • 32

1 Answers1

1

You can use React Native Image Picker to pick an image from Camera Roll or Gallery.

See it's usage code here

To write any file into native file storage, you can use RNFS

See a basic example here

Vignesh V Pai
  • 699
  • 4
  • 7
  • See I want to copy the image as itself without converting it to base64 string. I used react-native-image-picker and from its response I picked the uri and then used rn-fetch-blob as ` RNFetchBlob.fs .cp(sourcepath, destinationPath)` . Now I need to check whether the image is copied to destination path as image itself or as uri. – Vinay N Feb 20 '20 at 06:40