I am building a keyboard accessory component where there will be a scroll through option above the keyboard, very similar to Twitter's keyboard. My view hiearchy is:
<InputAccessoryView>
<View style={myStyle}>
<ScrollView horizontal={true} keyboardShouldPersistTaps={'always'}
{[...Array(n).keys()].map(uid => this.renderBubble(uid) })}
</ScrollView>
</View>
</InputAccessoryView>
By putting keyboardShouldPersistTaps
as always
, I can make sure the press event does not dismiss the keyboard. However when I scroll through the items in ScrollView
, the keyboard dismisses if I scroll too quickly, the keyboard does not dismiss if I scroll slowly. The docs here: https://facebook.github.io/react-native/docs/gesture-responder-system and here: https://facebook.github.io/react-native/docs/scrollview#onmomentumscrollbegin do not give me a way to capture a long pan event. Is there an API to do this so I scroll through the ScrollView
items as fast as I want, and the keyboard will not dismiss?