-
onLayout =
(event)=>{
-
console.log(event.nativeEvent.layout.height)
-
}
页面引用
onLayout = {(event)=>this.onLayout(event)}
react native 入门记录
错误请指正