I need to get parent block height, I guess I must use Dimensions. But how can I do that? Thanks
1 Answer
You could get the dimensions using onLayout and then pass them to the child component as props, as Tyler McGinnis said in his comment.
2 Comments
Maksim
But if I use horizontal ScrollView instead of View?
Chris Ghenea
Try onContentSizeChange facebook.github.io/react-native/docs/…