React-native-swiper: swiper is displayed only after swiping

Created on 18 Sep 2019  路  6Comments  路  Source: leecade/react-native-swiper

mac os

  • react-native-swiper v1.5.14
  • react-native v0.50.4

Expected behaviour
the slider is displayed on the page

Actual behaviour
the swiper is displayed only after swiping (it does not matter which way)

How to reproduce it>

when you first open the application everything is ok
further in the application I exit my profile and log into it
and when I open the page where the swiper is located I see an empty place. if I swipe the screen the swiper immediately appears and no longer disappears (until I exit my profile again)
tried to enter different users
-

Steps to reproduce

1.open app
2.log out
3.login

my code
Screenshot 2019-09-18 at 17 00 10

when i just opened the page
Screenshot 2019-09-18 at 17 00 53

swiped across the screen
Screenshot 2019-09-18 at 17 01 07

Most helpful comment

Hi @GauthierG @abeeralshaer
the solution with key={Date.now()} didn't work for me too
removeClippedSubviews = {false} solved the problem
Thanks!

All 6 comments

Having a similar issue here

+1 on ios

I had the same issue and the solution with key={Date.now()} didn't work for me. I needed to add removeClippedSubviews={false} to fix this (but I don't understand why).

Hi @GauthierG @abeeralshaer
the solution with key={Date.now()} didn't work for me too
removeClippedSubviews = {false} solved the problem
Thanks!

@Jendyy
Me either. But my problem was totally different. The problem was that the swiper doesn't update after re-rendering. So I had to put the key something that changes like email/ which first is undefined then comes as a string.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

agzuniverse picture agzuniverse  路  3Comments

Liqiankun picture Liqiankun  路  3Comments

commit-master picture commit-master  路  3Comments

hadrienbbt picture hadrienbbt  路  3Comments

tokict picture tokict  路  3Comments