RN中获取View的高度

 this.onLayout(event)}>

onLayout = (event) => {
    const height = event.nativeEvent.layout.height;
}

你可能感兴趣的:(RN中获取View的高度)