tomzaku / react-native-shimmer-placeholder

Placeholder/ Skeleton of React Native
MIT License
1.06k stars 93 forks source link

Excessive number of pending callbacks: 501. Some pending callbacks that might have leaked by never being called from native code: #91

Open Vrunalbenke opened 10 months ago

Vrunalbenke commented 10 months ago

when giving Flatlist data large array and using multiple ShimmerPlaceHolder then this error occur.

If array length is small( Flatlist data) or less number of ShimmerPlaceHolder used then I doesn't get this warning

`<FlatList showsVerticalScrollIndicator={false} // keyExtractor={item => item.id} contentContainerStyle={{paddingBottom: 30}} style={{paddingHorizontal: 16}} data={[...Array(10).keys()]} // Generate an array of 10 items ItemSeparatorComponent={() => <View style={{height: 14}} />} renderItem={({index}) => (

      )}
    />`
razan-sameh commented 8 months ago

I have the same problem , have you found a way to solve the problem?

Pratik-2102 commented 7 months ago

i am also facing this issue. is there any solution available ?

Vrunalbenke commented 7 months ago

@razan-sameh @Pratik-2102 i have found an temporary solution - just use less number of shimmers

Pratik-2102 commented 7 months ago

@razan-sameh @Pratik-2102 i have found an temporary solution - just use less number of shimmers

Okay thanks. Does this make application slow during initial rendering. I have lots of item on mainscreen which use shimmer effect

Vrunalbenke commented 7 months ago

@Pratik-2102 yes