所以我把它包装在一个KeyboardAvoidingView中。但是不管我为这个视图设置了什么行为,TextInput都不会移动到键盘上方。我还尝试用KeyboardAvoidingView包装整个组件,但这样做会破坏整个布局。 有谁可以帮我?我从未设法让KeyboardAvoidingView为我工作,现在我真的需要它了。提前感谢!style.hint}>Swipe to cycle through the icons</Text>
我使用的是KeyboardAvoidingView,我想把道具的“行为”传递给它,以防平台是IOS平台,而不是安卓平台。我不想为相同的内容编写两个单独的JSX组件声明。有没有办法决定通过道具。Based on the platform the component should be declared the following way
<KeyboardAvoidingViewmodalContainer} >
{this.props.children} //I've lots of child