reactrondev / react-native-web-swiper

Swiper-Slider for React-Native and React-Native-Web
213 stars 56 forks source link

Swiper getting crashed #31

Closed SupriyaGo closed 3 years ago

SupriyaGo commented 4 years ago

When I am adding more than 6 components inside the swiper in my app, it's getting slower and the app getting crashed. Please help.

oxyii commented 4 years ago

@SupriyaGo looks like a memory overflow. I don’t think that the cause of the crash is the swiper exactly. What kind of content in the swiper? if these are images, have you optimized them? try to display all your content inside a ScrollView. It will still crash

SupriyaGo commented 4 years ago

I have images and videos as content. yes I have optimized them by size. Where to write ScrollView?

<Swiper>
  <ScrollView>
     <Component1/>
     <Component2/>
     <Component3/>
     <Component4/>
  <ScrollView/>
<Swiper/>

like this?

oxyii commented 4 years ago

@SupriyaGo Nope. ScrollView instead Swiper. Will it crash?

SupriyaGo commented 4 years ago

If I use ScrollView instead of a swiper, it will work like a normal scrollable page. I want a swipeable interface.

jarvisluong commented 4 years ago

He is asking if using ScrollView also crashes your app. It is so that we can understand whether the crash is from the package or just because your components are too complex.

jarvisluong commented 3 years ago

Hi! I'm closing this issue since there is no update in the last 90 days! Feel free to create a new issue if needed.