-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamically layout the Note and Result based on keyboard #21
base: main
Are you sure you want to change the base?
Conversation
- use flexbox to dynamically layout - use KeyboardAvoidingView to adjust the height so that flexbox can adjust according - TODO: have more control with flexGrow/flexShrink ([reference](https://reactnative.dev/docs/flexbox#flex-basis-grow-and-shrink))
Hey @TDHTTTT, Thanks for picking this issue. I found some problems testing on an iPhone device:
RPReplay_Final1661395845.MP4What devices did you have a chance to test with? |
pages/Editor.js
Outdated
@@ -417,10 +420,11 @@ const styles = StyleSheet.create({ | |||
borderTopLeftRadius: 24, | |||
fontFamily: "iA Writer Quattro", | |||
width: "100%", | |||
position: "absolute", | |||
height: 165, | |||
minheight: 165, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: minHeight
Hey @zehfernandes thanks for the reply! I tested with my iPhone XS MAX. I will take a look at the issues and try to fix them over the weekend. |
@zehfernandes I think I fixed the onDrag keyboard dismiss. However, the size of the result box is a bit tricky to debug so I don't have a good solution now. Also, interestingly, the issue doesn't seem to appear in simulator. Please see the video attached which is recorded on a iPhone 13 mini simulator. Simulator.Screen.Recording.-.iPhone.13.mini.-.2022-08-27.at.17.31.34.mp4 |
adjust according
(reference)