react-native-community/discussions-and-proposals

(Android) Cannot measure components that are offscreen and inside flatlists (works on iOS)

joaogabrieldasilva opened this issue · 0 comments

Introduction

(Android) Cannot measure components that are offscreen and inside flatlists (works on iOS)

Details

Currently I'm trying to build a feature that requires measuring items inside flatlists, but currently it's not possible to accomplish on android because it returns me udefined data on the "measure" method (an interesting fact is that it does work for components that are offscreen but OUTSIDE a flatlist)

Discussion points

Is it possible to make it work on Android just like it does on iOS or it's just an android limitation?

Here you guys have some logs

logs

And here I have a minimal reproduction repository as well

https://github.com/JoaoGabrielDaSilva/react-native-measure-repro