You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[ListView] wrapped by NavigatorIOS contentInsets inconsistency -- somehow linked to translucency of the titlebar #2151
The crux of the problem is that after a layout reflow, ListView has a problem repositioning the top of the content, which it somehow calculates further to the top than originally displaying.
Hmm.
Maybe you should try to set the automaticallyAdjustContentInsets prop on your ListView to false?
We had a few issues with lists padding and turning it off helped:
changed the title [-][ListView] positioning issue after layout changes[/-][+][ListView] positioning issue after layout changes (contentInsets related?)[/+]on Jul 30, 2015
changed the title [-][ListView] positioning issue after layout changes (contentInsets related?)[/-][+][ListView] contentInsets inconsistency -- somehow linked to translucency of the titlebar [/+]on Jul 30, 2015
changed the title [-][ListView] contentInsets inconsistency -- somehow linked to translucency of the titlebar [/-][+][ListView] wrapped by NavigatorIOS contentInsets inconsistency -- somehow linked to translucency of the titlebar [/+]on Aug 5, 2015
I think it's important to note the difference of behavior when using ListView with NavigatorIOS specifically.
Here's a sample from 0.11.0-rc that shows you don't need to make any adjustments to the ListView to get the content to line up properly, with either translucent set to true or false. https://rnplay.org/apps/WF7zAg
For others who are having similar issues but are NOT using NavigatorIOS then your going to have add automaticallyAdjustContentInsets={false} to your ListView. See #1779
@alvaromb You could check out the UIExplorer demo included on the repo. I think this should help.
Activity
shlomiatar commentedon Jul 29, 2015
Hmm.
Maybe you should try to set the
automaticallyAdjustContentInsetsprop on your ListView to false?We had a few issues with lists padding and turning it off helped:
jaygarcia commentedon Jul 29, 2015
@schlomiatar, I will give that a go. I still think it's a bug since it doesn't work properly. :(
jaygarcia commentedon Jul 30, 2015
@shlomiatar , no dice. It actually makes things really bad.

[-][ListView] positioning issue after layout changes[/-][+][ListView] positioning issue after layout changes (contentInsets related?)[/+]jaygarcia commentedon Jul 30, 2015
Another weirdness: Changing
translucent : falsefrom defaulttruefixes this issue![-][ListView] positioning issue after layout changes (contentInsets related?)[/-][+][ListView] contentInsets inconsistency -- somehow linked to translucency of the titlebar [/+]jaygarcia commentedon Jul 31, 2015
So it seems that
translucent : falseprevents you from scrolling to the bottom. D:jaygarcia commentedon Aug 5, 2015
Turns out that this is some type of layout bug with Navigator IOS and child items.
In an iPhone 6, the only way to resolve some of these issues is with fudging things around.
The demo below is an example of how this is resolved with wrapping the list view.
[-][ListView] contentInsets inconsistency -- somehow linked to translucency of the titlebar [/-][+][ListView] wrapped by NavigatorIOS contentInsets inconsistency -- somehow linked to translucency of the titlebar [/+]alvaromb commentedon Sep 7, 2015
Sorry for the off-topic @jaygarcia, but how do you managed to use
NavigatorIOSinside a modal component?christopherdro commentedon Sep 13, 2015
I think it's important to note the difference of behavior when using ListView with NavigatorIOS specifically.
Here's a sample from 0.11.0-rc that shows you don't need to make any adjustments to the ListView to get the content to line up properly, with either translucent set to true or false. https://rnplay.org/apps/WF7zAg
For others who are having similar issues but are NOT using NavigatorIOS then your going to have add
automaticallyAdjustContentInsets={false}to your ListView. See #1779@alvaromb You could check out the UIExplorer demo included on the repo. I think this should help.
@ide @brentvatne
jaygarcia commentedon Sep 17, 2015
@christopherdro , thanks. I'll look to upgrade RN versions soon. I do so very cautiously because things keep changing causing breaks in my app :)
jaygarcia commentedon Oct 20, 2015
Closing this.