ardaogulcan / react-native-keyboard-accessory

A React Native Keyboard Accessory (View, Navigation) Component. Sticky views on keyboard.
MIT License
527 stars 64 forks source link

Giant space on Android #50

Open hsavit1 opened 4 years ago

hsavit1 commented 4 years ago

Using galaxy note 8 / Android 9 in the example expo repo

Screenshot_20200526-122537_Expo

felipebergamin commented 4 years ago

I'm having the same problem... Are you using the accessory view with 'androidAdjustResize' option? I had to use it without this option to work.

jonathanroze commented 4 years ago

I've the same issue on IOS and Android...

JulianKingman commented 4 years ago

Same issue

rheng001 commented 4 years ago

Any updates on this issue? Having same problem

willadamskeane commented 4 years ago

Having this issue as well.

Roka20012 commented 3 years ago
  1. Does somebody checked this example from README.md? example
  2. Can somebody provide a code snippet, how you use it?
Twisterking commented 3 years ago

Same problem here, this seems to be broken :( I have a very very basic setup and no matter what I do, the <View/> seems to sit at double the height where it should!

sudheerpal commented 3 years ago

Did any one got the solution for extra white space? Its appearing on selected sizes of device.

keyboardRn
kosbog commented 3 years ago

Just set androidAdjustResize = true. I'm using a KeyboardAccessoryNavigation component. Don't forget to set flex: 1 to parent element. My working example on iOS & Android:

<ScrollView
      style={[styles.container, { paddingTop: headerHeight }]}
      contentContainerStyle={[styles.containerContent]}>
     ....
     ....
    <KeyboardAccessoryNavigation
        nextHidden
        previousHidden
        hideBorder
        androidAdjustResize
        {null}
    </KeyboardAccessoryNavigation>
</ScrollView>

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
  containerContent: {
    flex: 1,
  },
});
mayconmesquita commented 2 years ago

@kosbog thanks! Your solution works good.