react-native-keyboard-accessory icon indicating copy to clipboard operation
react-native-keyboard-accessory copied to clipboard

Giant space on Android

Open hsavit1 opened this issue 4 years ago • 10 comments

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

Screenshot_20200526-122537_Expo

hsavit1 avatar May 26 '20 16:05 hsavit1

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.

felipebergamin avatar May 27 '20 13:05 felipebergamin

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

jonathanroze avatar Jul 01 '20 00:07 jonathanroze

Same issue

JulianKingman avatar Jul 08 '20 21:07 JulianKingman

Any updates on this issue? Having same problem

rheng001 avatar Aug 22 '20 19:08 rheng001

Having this issue as well.

willadamskeane avatar Aug 24 '20 18:08 willadamskeane

  1. Does somebody checked this example from README.md? example
  2. Can somebody provide a code snippet, how you use it?

Roka20012 avatar Sep 22 '20 20:09 Roka20012

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!

Twisterking avatar Nov 02 '20 13:11 Twisterking

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

keyboardRn

sudheerpal avatar Nov 02 '20 21:11 sudheerpal

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,
  },
});

kosbog avatar Nov 20 '20 10:11 kosbog

@kosbog thanks! Your solution works good.

mayconmesquita avatar Dec 22 '21 18:12 mayconmesquita