terrylinla / react-native-sketch-canvas

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

How to add text input on canvas #141

Open ajeett opened 4 years ago

ajeett commented 4 years ago

Hey, how can we enter text into the canvas? Any suggestions??

itvignes09 commented 4 years ago

I also looking for the same.

jairrc commented 4 years ago

<SketchCanvas ref={ref => this.canvas = ref} style={{ flex: 1 }} strokeWidth={6} text={[{text: 'THIS IS YOUR TEXT', fontSize: 40, position: { x: 0.5, y: 0.01 }, anchor: { x: 0.5, y: 0 }, coordinate: 'Ratio', overlay: 'TextOnSketch', fontColor: 'black', alignment: 'Center', imageType: 'jpg', }]}

bhavinsapra commented 3 years ago

but the text is not dragging within the canvas please share solution