leecade / react-native-swiper

The best Swiper component for React Native.
MIT License
10.4k stars 2.34k forks source link

loading not stopping when loadMinimal is true in android #1114

Open weinbergdavid opened 4 years ago

weinbergdavid commented 4 years ago

Android

Version

Expected behaviour

The loading component should stop and the page will be shown.

Actual behaviour

The loading not stoping.

How to reproduce it>

<Swiper
  showsPagination={false}
  loop={false}
  loadMinimal
>
  <View style={{height: "100%", width: "100%", backgroundColor: "red"}}/>
  <View style={{height: "100%", width: "100%", backgroundColor: "green"}}/>
  <View style={{height: "100%", width: "100%", backgroundColor: "blue"}}/>      
</Swiper>

Steps to reproduce

  1. insert the code above.
  2. swipe left and right.
  3. remove loadMinimal and it's working fine.
waohwaohwaoh commented 4 years ago

I have the same problem, have you found any solutions?

waohwaohwaoh commented 4 years ago

i solved this problem, this behavior is due to the animated loader if you make it static, the problem is not reproduced

BobbyBorisov commented 2 years ago

@waohwaohwaoh what do you mean to make it static? I am using ActivityIndicator from react-native. If the application uses animated loaders I am not sure its very wise to switch to static text saying "loading"..