Bluesky app fork with some witchin' additions 💫

change flatlist config for explore page (#9083)

authored by samuel.fm and committed by

GitHub 4788106f 6414bda2

+16 -2
+16 -2
src/screens/Search/Explore.tsx
··· 1082 1082 windowSize={platform({android: 11})} 1083 1083 /** 1084 1084 * Default: 10 1085 + * 1086 + * NOTE: This was 1 on Android. Unfortunately this leads to the list totally freaking out 1087 + * when the sticky headers changed. I made a minimal reproduction and yeah, it's this prop. 1088 + * Totally fine when the sticky headers are static, but when they're dynamic, it's a mess. 1089 + * 1090 + * Repro: https://github.com/mozzius/stickyindices-repro 1091 + * 1092 + * I then found doubling this prop on iOS also reduced it freaking out there as well. 1093 + * 1094 + * Trades off seeing more blank space due to it having to render more items before it can show anything. 1095 + * -sfn 1085 1096 */ 1086 - maxToRenderPerBatch={platform({android: 1})} 1097 + maxToRenderPerBatch={platform({android: 10, ios: 20})} 1087 1098 /** 1088 1099 * Default: 50 1100 + * 1101 + * NOTE: This was 25 on Android. However, due to maxToRenderPerBatch being set to 10, 1102 + * the lower batching period is no longer necessary (?) 1089 1103 */ 1090 - updateCellsBatchingPeriod={platform({android: 25})} 1104 + updateCellsBatchingPeriod={50} 1091 1105 refreshing={isPTR} 1092 1106 onRefresh={onPTR} 1093 1107 />