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

Keyboard avoiding view not working when input component is inside Footer. #59

Closed
itsyogesh opened this issue Aug 29, 2019 · 4 comments
Closed
Labels
🤕 Valid issue Something isn't working

Comments

@itsyogesh
Copy link

Hey @jeremybarbet

Thanks for the awesome library. So I am trying to get a text input work inside a footer and the keyboardAvoidingView doesn't seem to work when the input is inside the footer. Here is a video of this.

Kapture 2019-08-29 at 19 55 37

Here is the code for the Modalize component.

<Modalize
        ref={this.modal}
        HeaderComponent={this.renderHeader}
        keyboardAvoidingBehavior="padding"
        modalHeight={DEVICE_HEIGHT - HEADER_HEIGHT}
        FooterComponent={this.renderFooter}
        onClosed={this.onClosed}
        withHandle={false}
        flatListProps={{
          data: comments,
          renderItem: ({ item }) => <SingleComment comment={item} key={item.id} />,
          keyExtractor: (item, index) => (item && item.id ? item.id.toString() : index),
          showsVerticalScrollIndicator: false
        }}
        overlayStyle={{
          backgroundColor: 'rgba(29, 33, 41, 0.2)'
        }}
      />

I've tried all the enums related to keyboardAvoidingBehavior ('height', 'position', 'padding') but none of them seem to work. Any help in pointing me to the right direction would help immensely.

@CR-97
Copy link

CR-97 commented Sep 20, 2019

Same issue here

@jeremybarbet
Copy link
Owner

Hi!

Yeah the input is a known issue. Unfortunately, I don't have time to work on it. If you already figured it out, feel free to open a PR, I will review it.

Related to #58.

@jeremybarbet
Copy link
Owner

Hi 1.3.7-rc.0 is released, you can try it out and I will release the final version if it works all fine!

@AdarshJais
Copy link

@jeremybarbet can you please clarify, Is it solved or not in a proper way? Because in my case I have multiple text input and thus above hack won't work for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤕 Valid issue Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants