作者回复: iOS 模拟器可以弹出键盘,学到了👍 除了隐藏 TextInput 我还有一种思路,就是直接使用显示的 TextInput + letterSpacing 控制字间距。
作者回复: 你可以试着将 ScrollView 组件的 keyboardShouldPersistTaps 属性设置为 handled 试试。 文档如下: keyboardShouldPersistTaps:Determines when the keyboard should stay visible after a tap. - 'never' tapping outside of the focused text input when the keyboard is up dismisses the keyboard. When this happens, children won't receive the tap. - 'always', the keyboard will not dismiss automatically, and the scroll view will not catch taps, but children of the scroll view can catch taps. - 'handled', the keyboard will not dismiss automatically when the tap was handled by children of the scroll view (or captured by an ancestor).
作者回复: 给你认真的学习态度点赞。 1. 实际上输入手机验证码这道题,它只需要一个,textinput 能够实现哦,我看到你有比较多 text,这一块还有改进空间。 关键提示:letterSpacing 2. onChangeSync 它还是一个私有的属性,你可以在源码中看到。