title: Imprecise height and getItemLayout in react native Android
body: <p>I'm using <a href="https://facebook.github.io/react-native/docs/flatlist#getitemlayout" rel="nofollow noreferrer"><code>getItemLayout</code></a> to improve the performance of my <code>SectionList</code> in React Native. I'm supposed to return the height of items, which is working, but I've noticed that the actual height of components can vary on Android:</p>
  
  <p><a href="https://i.stack.imgur.com/LuaXj.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LuaXj.png" alt="enter image description here"></a></p>
  
  <p>This causes noticeable shifting when I scroll far down the list--seemingly because when it actually renders the list items the height differs from what I've returned from <code>getItemLayout</code> sometimes up to 1 dp.</p>
  
  <p>Is there a more accurate way to implement <code>getItemLayout</code> so that there is no shifting after scrolling?</p>