react-native-safe-area-context icon indicating copy to clipboard operation
react-native-safe-area-context copied to clipboard

Unexpected behaviour when wrapping a *List Component

Open mydesweb opened this issue 3 years ago • 2 comments

When I wrap any List with SafeAreaProvider the list Items are rendered multiple times. Please check this snack https://snack.expo.dev/@mydesweb/safeareaissue .

  1. Open the code from your device
  2. Check the console logs
  3. Shake & Reload button from expo app or remove the app from background and open again
  4. You will see unexpected multiple Item renders

In my example I use BigList but it is the same with SectionList from RN.

mydesweb avatar Dec 19 '21 09:12 mydesweb

Screenshot 2021-12-19 at 11 42 30

mydesweb avatar Dec 19 '21 09:12 mydesweb

did you solve it?

ddikodroid avatar Jun 06 '22 19:06 ddikodroid

I think this isn't an issue any more

jacobp100 avatar Jan 19 '23 11:01 jacobp100