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

Navigation Bar is pushed off the screen when keyboard appears #105

Closed
jayesbe opened this issue Apr 3, 2016 · 2 comments
Closed

Navigation Bar is pushed off the screen when keyboard appears #105

jayesbe opened this issue Apr 3, 2016 · 2 comments

Comments

@jayesbe
Copy link

jayesbe commented Apr 3, 2016

This looks like its related to #41 which doesn't have much activity or details so i'll add my issue.

I created a ticket in react-native-router-flux (aksonov/react-native-router-flux#454) but since thats only a wrapper to this I'll recreate here.

I am trying to create a layout with a text input at the bottom and a header at the top (chat window)

When the keyboard is not displayed, the layout looks as expected.

The scene is similar to this

<View style={{flex: 1}}>
      <View style={[position: 'absolute', top: 0, left: 0, right: 0, height: 50]}>

      </View>
      <View style={[position: 'absolute', bottom: 0, left: 0, right: 0, height: 50]}>
          <TextInput />
     </View>
<View>

When the TextInput gains focus and the keyboard is displayed, the TextInput sits right on top of the keyboard as expected.

However the element positioned at top:0, it is pushed off the screen when the keyboard appears. I would expect the element to stay static at the top of the screen.

@jayesbe
Copy link
Author

jayesbe commented Apr 3, 2016

It seems this might be a core issue. It looks like If I minimize the app, then bring it back up, it locks the element at the top as expected. When you first run the app it pushes it off the screen. Definitely seems like a bug to me.

@jayesbe
Copy link
Author

jayesbe commented Apr 3, 2016

@jayesbe jayesbe closed this as completed Apr 3, 2016
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

1 participant