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

Docs: what does this module do? #2

Closed
morenoh149 opened this issue Oct 16, 2015 · 2 comments
Closed

Docs: what does this module do? #2

morenoh149 opened this issue Oct 16, 2015 · 2 comments

Comments

@morenoh149
Copy link

Hey there. I'm unclear as what this spacer does exactly. Here

      <View style={[{backgroundColor: 'green', flex: 1}]}>
        <TextInput style={{backgroundColor: 'yellow', flex: 1}}/>
        <View style={{backgroundColor: 'red', left: 0, right: 0, height: 5}}/>
        <KeyboardSpacer/>
      </View>

I would understand if KeyboardSpacer were between the textinput and view then I would assume the view ends up at the bottom as the spacer grows to all the space available. But what actually renders in the example code?

@Andr3wHur5t
Copy link
Owner

The red view shows that the other views changed size, I will change the example to make this more clear.

Example Gif

@Andr3wHur5t
Copy link
Owner

Fixed in 076fa9c.

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