enable interactive dismiss
This commit is contained in:
@@ -267,6 +267,13 @@ export function MessagesList({
|
|||||||
scrollTo(flatListRef, 0, 1e7, false)
|
scrollTo(flatListRef, 0, 1e7, false)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onInteractive: e => {
|
||||||
|
'worklet'
|
||||||
|
keyboardHeight.set(e.height)
|
||||||
|
if (e.height > bottomOffset) {
|
||||||
|
scrollTo(flatListRef, 0, 1e7, false)
|
||||||
|
}
|
||||||
|
},
|
||||||
onEnd: e => {
|
onEnd: e => {
|
||||||
'worklet'
|
'worklet'
|
||||||
keyboardHeight.set(e.height)
|
keyboardHeight.set(e.height)
|
||||||
@@ -409,7 +416,7 @@ export function MessagesList({
|
|||||||
// The extra two items account for the header and the footer components
|
// The extra two items account for the header and the footer components
|
||||||
initialNumToRender={isNative ? 32 : 62}
|
initialNumToRender={isNative ? 32 : 62}
|
||||||
maxToRenderPerBatch={isWeb ? 32 : 62}
|
maxToRenderPerBatch={isWeb ? 32 : 62}
|
||||||
keyboardDismissMode="on-drag"
|
keyboardDismissMode="interactive"
|
||||||
keyboardShouldPersistTaps="handled"
|
keyboardShouldPersistTaps="handled"
|
||||||
maintainVisibleContentPosition={{
|
maintainVisibleContentPosition={{
|
||||||
minIndexForVisible: 0,
|
minIndexForVisible: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user