I need to get parent block height, I guess I must use Dimensions. But how can I do that? Thanks
您可以使用onLayout获取尺寸,然后将它们作为道具传递给子组件,如Tyler McGinnis在评论中所述。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.