最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - React Native: Draw on image with only JS code - Stack Overflow

programmeradmin6浏览0评论

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?

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?

Share Improve this question asked Mar 20, 2017 at 14:27 Ata MohammadiAta Mohammadi 3,5506 gold badges43 silver badges71 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 4

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

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

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

发布评论

评论列表(0)

  1. 暂无评论