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

Not working on react-native Modal components #18

Open
JuanDeLeon opened this issue Mar 7, 2018 · 1 comment
Open

Not working on react-native Modal components #18

JuanDeLeon opened this issue Mar 7, 2018 · 1 comment

Comments

@JuanDeLeon
Copy link

JuanDeLeon commented Mar 7, 2018

I have a Modal component (react-native library) with a couple of TextInputs on it.

I set this Modal property:
onShow={() => this.setAndroidAdjustNothing()}

Function definition is:

setAndroidAdjustNothing(){
    if(AndroidKeyboardAdjust){
      alert('adjusted');
      AndroidKeyboardAdjust.setAdjustNothing();
    }
  }

I can see the Alert show up when the Modal pops up, so it's being called.
However when I click on the inputs, the current view is resized to fit all components into the remaining space.
Could it be that it's targeting the Main activity, and not the actual Modal activity? Is there a way to do this?

@yuoppp
Copy link

yuoppp commented May 31, 2018

Same to me. Doesn't work in RN Modal.
Did you solve this?

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

2 participants