expo / react-native-invertible-scroll-view

An invertible ScrollView for React Native
MIT License
465 stars 86 forks source link

invalid space with NavigatorIOS #19

Closed tantou closed 8 years ago

tantou commented 8 years ago

I use react-native-invertible-scroll-view with NavigatorIOS

class GiftedMessengerExample extends Component {
  render(){
return (
<ListView
            ref='listView'
            dataSource={this.state.dataSource}
            renderRow={this.renderRow}
            renderFooter={this.renderLoadEarlierMessages}
            style={this.styles.listView}

            renderScrollComponent={props => <InvertibleScrollView {...props} inverted />}
/>
);
}
}
class Nav extends Component{
  render(){
    return (
      <NavigatorIOS
        style={{flex:1}}
        initialRoute={{
          title: 'flex:1',
          component: GiftedMessengerExample
        }} />

      );
  }
}

and it has a invalid space at the bottom of listView image

what's the reason?

ide commented 8 years ago

You should set automaticallyAdjustContentInsets={false} and control the content insets yourself.

tantou commented 8 years ago

But I put https://github.com/FaridSafi/react-native-gifted-messenger this messenger to the NavigatorIOS,and the space also occur and the react-native-gifted-messenger use Navigator does no have the invalid space And I replace the Navigator intead of NavigatorIOS and then ,the space occur too Why?

tantou commented 8 years ago

I try the automaticallyAdjustContentInsets ={false} and the space disappear Thank You!