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

Android ApplicationLocked screen positioning issue #14

Closed
Panda-ref opened this issue Jul 12, 2018 · 1 comment
Closed

Android ApplicationLocked screen positioning issue #14

Panda-ref opened this issue Jul 12, 2018 · 1 comment

Comments

@Panda-ref
Copy link
Contributor

Original ApplicationLocked render function is:

  render() {
    return (
      <View>
        {this.renderErrorLocked()}
      </View>
    )
  }

Here we apply container styles on top View component of renderErrorLocked, on Android it still remains hidden despite absolute positioning and you see PinCodeEnter.

Moving container styles here solves the issue for me:

  render() {
    return (
      <View style={styles.container}>
        {this.renderErrorLocked()}
      </View>
    )
  }
@jeremy-farnault
Copy link
Contributor

I've encountered this a lot of time with android.
If you use absolute positioning on an element that would be out of the parent view, it'll stay hidden (don't know if I'm clear enough :p).
We use this component with react navigation to go to the next screen.

I really don't think I can do something to fix this but if you have an idea...I'm more than keen to hear it :).

Cheers

Panda-ref added a commit to Panda-ref/react-native-pincode that referenced this issue Jul 13, 2018
@Panda-ref Panda-ref mentioned this issue Jul 13, 2018
jeremy-farnault added a commit that referenced this issue Jul 13, 2018
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