Skip to content
Discussion options

You must be logged in to vote

Good, thanks for explanation.

Since the problem is not reproducible in the small example but appears in the app code, I suspect one more thing here. This is related to how reanimated works. It batches all animated styles changes and commits them once per animation frame, but, if the React render is heavy, changes from reanimated might be much delayed, after React successfully commits its changes.

There is not an easy workaround for this case and using requestAnimationFrame, timeouts, etc. won't work here.

Possible solution

You can try using the onLayout to check if the proper height was applied before making the view visible. This is a tricky way but I used something similar before to det…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@MatiPl01
Comment options

@MatiPl01
Comment options

@bglgwyng
Comment options

@MatiPl01
Comment options

Answer selected by bglgwyng
@bglgwyng
Comment options

@MatiPl01
Comment options

@bglgwyng
Comment options

@MatiPl01
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants