//通过此属性可以获取View的宽高和相对父级的位置
onLayout = {(event)=>console.log('event',event.nativeEvent.layout)}

React Native View属性onLayout

 

https://www.hangge.com/blog/cache/detail_1747.html

相关文章:

  • 2021-07-09
  • 2021-04-26
  • 2021-05-17
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2021-06-29
  • 2021-08-13
  • 2022-12-23
  • 2021-08-25
  • 2021-12-04
相关资源
相似解决方案