[🐴] Remove keyboard controller lib (#4038)
* remove library * implement using just reanimated * always return false for `keyboardIsOpening` on web * undo comment * handle input focus scroll more elegantly * add back minimal shell toggle on mobile web * adjust initialnumtorender * oops * nit
This commit is contained in:
parent
da2bdf5d6f
commit
b15b49a48f
5 changed files with 89 additions and 74 deletions
|
|
@ -65,7 +65,7 @@ export function MessageInput({
|
|||
const keyboardHeight = Keyboard.metrics()?.height ?? 0
|
||||
const windowHeight = Dimensions.get('window').height
|
||||
|
||||
const max = windowHeight - keyboardHeight - topInset - 100
|
||||
const max = windowHeight - keyboardHeight - topInset - 150
|
||||
const availableSpace = max - e.nativeEvent.contentSize.height
|
||||
|
||||
setMaxHeight(max)
|
||||
|
|
@ -108,7 +108,6 @@ export function MessageInput({
|
|||
keyboardAppearance={t.name === 'light' ? 'light' : 'dark'}
|
||||
scrollEnabled={isInputScrollable}
|
||||
blurOnSubmit={false}
|
||||
onFocus={scrollToEnd}
|
||||
onContentSizeChange={onInputLayout}
|
||||
ref={inputRef}
|
||||
hitSlop={HITSLOP_10}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue