Ata Mohammadi
Ata Mohammadi

Reputation: 3550

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?

Upvotes: 5

Views: 8394

Answers (1)

GeraltDieSocke
GeraltDieSocke

Reputation: 1618

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 localSourceImageprop.

Upvotes: 4

Related Questions