jayeszee / rn-draw

React native draw tool for react native applications
50 stars 36 forks source link

More examples #4

Closed bec-smith closed 6 years ago

bec-smith commented 6 years ago

Hi! I was wondering if you have any examples of this project working - especially in Expo. I have this so far and I can't get it to draw.

`render() { return (

Hello, This is a test! Try drawing on this!
);

} }`

const styles = StyleSheet.create({ canvas: { alignItems: 'center', justifyContent: 'center', backgroundColor: '#BCCDD0', borderRadius: 4, borderWidth: 5, borderColor: 'black', color: '#ff0000', strokeWidth: '4', },});

jayeszee commented 6 years ago

Hey @becnichelesmith it seems like you don't have a opening <VIew> in your code! Also do you actually see the border of the canvas?

jayeszee commented 6 years ago

@becnichelesmith will you download 0.0.6 and let me know if that version works for you? keep in mind there are problems with flex box when a container has the style alignItems: center

bec-smith commented 6 years ago

Everything works now- thanks!

bec-smith commented 6 years ago

Any idea on how to add the buttons like you did in the example? Also: adding a way to save the drawing as an image would be super helpful