1
我試圖使用react-native-keyboard-aware-scroll-view庫(0.2.7)。它對我完全沒有任何幫助。我究竟做錯了什麼?React Native KeyboardAwareScrollView不起作用
import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view'
render() {
return (
<KeyboardAwareScrollView>
<View>
<TextInput placeholder='hi1' />
<TextInput placeholder='hi2' />
<TextInput placeholder='hi3' />
<TextInput placeholder='hi4' />
<TextInput placeholder='hi5' />
<TextInput placeholder='hi6' />
<TextInput placeholder='hi7' />
</View>
</KeyboardAwareScrollView>
)
}
謝謝 - 我現在正在使用它,只是看到了一些奇怪的功能,所以我以爲我會試用KeyboardAwareScrollView,但我會嘗試修復這些怪癖。欣賞它。 –
您遇到了哪些奇怪的功能? – whitep4nther
我最終修復它,這是由於zIndex的。謝謝! –