terrylinla / react-native-sketch-canvas

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

Android Annotations do not move in sync as the SketchCanvas Images moves along when keyboard rise up #207

Open aayushm9595 opened 3 years ago

aayushm9595 commented 3 years ago

Expectation is to have the annotations and Image move in sync when the keyboard is raised. Works fine on iOS Plaform: "Android" https://user-images.githubusercontent.com/50030865/122806791-64c7e680-d2e8-11eb-93f6-9172a1bf1732.mp4

mealCode commented 3 years ago

i believe you have to handle it with react native itself. it doesn't really relate to the library. It's with KeyboardAvoidingView so something like this:

<KeyboardAvoidingView
      behavior={Platform.OS === 'ios' ? 'padding' : null}
      keyboardVerticalOffset={Platform.select({ios: 100, android: 100})}
      style={{flex: 1}}>

you can play around with the values.