Skip to content

Best way to currently mount/unmount component depending on shared value. #6787

Answered by MatiPl01
itsramiel asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

I think that the only valid solution is to set the display property of the component to none. In general, reanimated has no impact on which components are rendered and should be used for animations, not for determining whether to render a component or not, so, as far as I know, there are no other valid solutions than just setting display to none, as you already mentioned.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@itsramiel
Comment options

Answer selected by itsramiel
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