简体   繁体   中英

React Native: Draw on image with only JS code

In my app, after use selects an image from gallery, he needs to black out some part of it. for example draw a black line where there are some names or signatures.

Is it possible to achieve this with JS only? or do I have to make some native views separately for android/ios and implement it to react native?

or is there any image picker modules which provides such a feature?

It's a little bit late, but I think this library will do the trick:

https://www.npmjs.com/package/@terrylinla/react-native-sketch-canvas

You can load a picture beforehand as your canvas with the localSourceImage prop.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM