1

I need to get parent block height, I guess I must use Dimensions. But how can I do that? Thanks

1
  • 1
    Get the height in the parent then pass it down as props to the child? Commented Dec 3, 2015 at 9:01

1 Answer 1

0

You could get the dimensions using onLayout and then pass them to the child component as props, as Tyler McGinnis said in his comment.

Sign up to request clarification or add additional context in comments.

2 Comments

But if I use horizontal ScrollView instead of View?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.