terrylinla / react-native-sketch-canvas

A React Native component for drawing by touching on both iOS and Android.
MIT License
697 stars 453 forks source link

localSourceImagePath="../assets/images/splash/splash2.png" is not working #58

Closed gmchaturvedi1 closed 6 years ago

gmchaturvedi1 commented 6 years ago

i am new to this library fantastic work but when i want to load image as background is not working.

Kindly suggest if i am doing wrongly

localSourceImagePath="../assets/images/splash/splash2.png"

thanks & Regards gmchaturvedi

princepardeep commented 6 years ago

Same here

diego-caceres-galvan commented 6 years ago

Hi. I don't think local assets to the project are supported in this case yet. The idea for now was to be able to draw on a picture taken by the camera, so the path it is expecting is more like "file:///..." to a picture in the cellphone memory.

I suppose that this would be a nice adding for the library.

terrylinla commented 6 years ago

I've done this part in my computer. It can pass a local asset/resource filename to localSourceImagePath. But I'm also merging PR meanwhile and face some problems... So it may take some time to release a new version.

princepardeep commented 6 years ago

Done by using react-native-image-picker it provides both i.e gallery as well as the camera for capturing the images. thanks @diego-caceres-galvan https://reactnativecode.com/select-pick-image-capture-camera-gallery-react-native/

terrylinla commented 6 years ago

I have released a new version. You can try it. Feel free to reopen this issue if there is still a problem.