You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 15, 2020. It is now read-only.
We all know that TouchableNativeFeedback only support one single child. But, why don't handle it and wrap the children into a View?
render(){// changing some pieces of your render// notice the `toArray`children=React.Children.toArray(children);// notice the View wrapping the childrenreturn<TouchableComponent><View>{children}</View></TouchableComponent>}
Just wondering why don't do this approach :)
The text was updated successfully, but these errors were encountered:
Adding a wrapper to your element could have a major impact on your layout, which would introduce you to a lot of "why doesnt this work" bugs, without seeing the error in your own code.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We all know that
TouchableNativeFeedback
only support one single child. But, why don't handle it and wrap the children into aView
?Just wondering why don't do this approach :)
The text was updated successfully, but these errors were encountered: