Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

avoidKeyboardLikeIOS not working well on android #477

Open
erickgtzh opened this issue Feb 13, 2023 · 2 comments
Open

avoidKeyboardLikeIOS not working well on android #477

erickgtzh opened this issue Feb 13, 2023 · 2 comments

Comments

@erickgtzh
Copy link

Hey everyone, I'm having an issue, I'd like to put my "Done" button behind my keyboard, it's working well on ios but not on android:

ios:
Screenshot 2023-02-13 at 17 22 38

android:
image

<Modalize
withHandle={false}
panGestureEnabled={false}
modalHeight={H}
modalStyle={[{ backgroundColor: theme.colors.white, paddingTop: 30 }, modalStyle]}
avoidKeyboardLikeIOS={false} //also tried using {Platform.select({ ios: false, android: true })} without success 
FooterComponent={() => (
  <Row
    ph-4
    style={{
      width: '100%',
      bottom: 13,
      backgroundColor: theme.colors.white,
    }}
  >
    <Button
      style={styles.nextButton}
      onSubmit={() => returnSelected()}
    >
      Done
    </Button>
  </Row>
)}
>
  <View style={{ backgroundColor: theme.colors.white }}>
      {list.map((item) => {
        if (item) {
          return (
            <TouchableOpacity onPress={() => toggleSelection(item.name)}>
            {...}
            </TouchableOpacity>
          );
        }
        return null;
      })}
  </View>
</Modalize>

"react-native-modal": "^13.0.0",

Big thanks!

@tribeless
Copy link

Having an issue as well with react-native - 0.72.4, react-native-modalize - 2.1.1. Modal misbehaves when keyboard is open on android and ios

@nathangabriel27
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants