Closed paulincai closed 3 years ago
Can you provide a code snippet to reproduce the problem?
I think.Now i got this problem too maybe it happen because React.cloneElement().Now am try to fixed and wait for solution from @trungdq88
thankyou
Close due to inactive.
Its not working with React.cloneElement
and also throwing some weird error for graphql wrapped component.
@theasia-Ashish if you are wrapping the component with graphql, please do one of the following to get <PageTransition>
to work:
{ withRef: true }
in the connect
method.<PageTransition>
can access to the DOM of your component and make transition logic on that.@trungdq88 I tried both nothing is working if i apply React.cloneElement
on this.props.children
.
its double the content of the page and add/remove classes continuously.
@theasia-Ashish Have you find a way to fix it yet?
It is a common and simple practice to use top component data container and pass props to a couple of mobile pages via React.cloneElement(). Example:
In this case, before even adding transition classes and ids to top DIVs in the children, things on the screen are looking scrambled, like content is getting doubled on the vertical.