Relative Content

Tag Archive for react-nativemeasurereact-native-sectionlistsafeareaview

ReactNative SafeAreaView + SectionList + onLayout=measure() not taking into account insets measurements in first render, but is in subsequent renders

I have built a list with a few subsections (hence using the library SectionList). I have implemented a drag and drop gesture to be able to rearrange items inside and across sections. The drag and drop gesture logic I have implemented measures the drop action, and compares it with the coordinates of each item, and based on the relative position, rearranges items accordingly. This works well, but I have had to come up with temporary, not-ideal solutions I’m afraid may cause problems in the future due to unexpected behavior of the combination of SafeAreaView + my logic.