kirillzyusko / react-native-keyboard-controller

Keyboard manager which works in identical way on both iOS and Android
https://kirillzyusko.github.io/react-native-keyboard-controller/
MIT License
1.67k stars 71 forks source link

Blank space beneath KeyboardToolbar after switching from emoji to text keyboard #622

Open RobertPetricevic opened 1 week ago

RobertPetricevic commented 1 week ago

Describe the bug On clicking input field, keyboard and keyboard toolbar is working fine. If I switch to emoji keyboard and then come back, there is blank space between keyboard and toolbar.

Code snippet

import React from 'react';
import { TextInput } from 'react-native';
import {
  KeyboardAwareScrollView,
  KeyboardToolbar,
} from 'react-native-keyboard-controller';

const Test = () => {
  return (
    <>
      <KeyboardAwareScrollView>
        <TextInput
          style={{
            height: 40,
            marginTop: 300,
            marginBottom: 50,
            borderColor: 'gray',
            borderWidth: 1,
          }}
        />
        <TextInput
          style={{
            height: 40,
            marginBottom: 50,
            borderColor: 'gray',
            borderWidth: 1,
          }}
        />
      </KeyboardAwareScrollView>
      <KeyboardToolbar />
    </>
  );
};

export default Test;

Smartphone (please complete the following information):

Device:

Libraries:

kirillzyusko commented 1 week ago

https://github.com/user-attachments/assets/01a6d845-2dcb-4693-8f2c-a90f9f915190

@RobertPetricevic I just tested and it works fine. Would you mind to elaborate a little bit more on:

RobertPetricevic commented 1 week ago

@kirillzyusko, sorry I erased half of my content and video when I was pasting the code.

  1. Yes is it reproducible on mentioned devices, physical iPhone xs and simulator iPhone 15
  2. This video is recorded in development, but the same is on production
  3. Here is the video https://github.com/user-attachments/assets/5c35d0b7-1eec-4112-ae02-33944adf16af
  4. I cant provide repro now, but I will as soon as I get home
  5. problem is reproducible on latest release
kirillzyusko commented 1 week ago

Thank you @RobertPetricevic 🙌

The video definitely looks strange. I can recommend you to try to 1.12.x version or even 1.11.x, but I think all of them will have the same problem 🤷‍♂️

Curious to see repo configuration and try to reproduce it on my end!