Andr3wHur5t / react-native-keyboard-spacer

Plug and play react-native keyboard spacer view.
MIT License
1.56k stars 219 forks source link

Docs: what does this module do? #2

Closed morenoh149 closed 9 years ago

morenoh149 commented 9 years ago

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 commented 9 years ago

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

Example Gif

Andr3wHur5t commented 9 years ago

Fixed in 076fa9c.