ReactNative 获取组件VIEW 的高度


  
  
  1. onLayout = (event)=>{
  2. console.log(event.nativeEvent.layout.height)
  3. }


页面引用

onLayout = {(event)=>this.onLayout(event)}
  
  


react native 入门记录  


错误请指正

猜你喜欢

转载自blog.csdn.net/qq_21937107/article/details/84872903