Open ganesh-papola opened 4 years ago
I'm having the same problem
have you got scrollEnabled={false}
on the input? I took it off and it's working better
@louisholley well that should work but i need scroll enabled, so can't turn it off
Try replacing
setTimeout(() => {
if (!this.mountedComponent) {
return
}
const responder = this.getScrollResponder()
responder &&
responder.scrollResponderScrollNativeHandleToKeyboard(
reactNode,
extraHeight,
true
)
}, keyboardOpeningTime)
with
if (this.mountedComponent) {
UIManager.measureLayout(
reactNode,
0,
() => {},
(x, y, width, height) => {
findNodeHandle(this._rnkasv_keyboardView), (x, y, width, height) => {
this._rnkasv_keyboardView.scrollToPosition(0, parseInt(y) - height - extraHeight, true);
}
});
}
inside KeyboardAwareHOC.scrollToFocusedInput()
@thijs-qv solution worked for me, thank you!
Thanks @thijs-qv. Has a PR been submitted for this?
I've just submitted a PR. Not sure if this library is actively maintained though.
I managed to solve it by setting keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
Thank you very much, you saved my day
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
Solved! Thanks
<KeyboardAwareScrollView
scrollEnabled={true}
extraScrollHeight={-64}
keyboardShouldPersistTaps="handled"
enableAutoAutomaticScroll={false}
enableOnAndroid={true}
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
{...props}>
{props.children}
</KeyboardAwareScrollView>
it is work for me
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
You saved our lives. Me and my pair friend spent a week for keyboards problems of react-native. We replaced the component
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
This also solved it for me. I'd like to know what the root cause is though and how to avoid it though.
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
WORKING :)
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
Working, you saved my day
For those of you wondering (just like me):
Number.MAX_SAFE_INTEGER
is defined as 2^53 - 1
, that is, 9007199254740991
The keyboardOpeningTime prop receives a number as miliseconds, so setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
actually means:
So yea... that
Although If you set an extraHeight
, this issue goes away
@JoseLion You should run for president! The world owes you for that fix!
@JoseLion You sir you have my respect, thanks for the workaround 👍
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
~this just makes the view not scroll for me... as in the view doesn't avoid the keyboard...~
I had scrollEnabled
set to false. setting that to true did improve the behavior.
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
I was about to go bald, thanks!
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
After applying so many things it works finally Thanks 😊 🙏 . But can you explain how it works??
I managed to solve it by setting
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
, but it's just a workaround.
Wow! Thanks a bunch my superhero!
keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
🙇
enableAutomaticScroll={Platform.OS === 'ios'}
worked for me, keyboardOpeningTime={Number.MAX_SAFE_INTEGER}
didn't
Screen is bouncing up and down when jumping to any text input