react native 获取控件本身的高度
<TouchableOpacity
onLayout={(e) => this.rowlayouts= e.nativeEvent.layout}
/>
this.rowlayouts.height //拿到当前控件的高度
//准备工作好了,下节讲仿微信朋友圈自动定位的实现
react native 获取控件本身的高度
<TouchableOpacity
onLayout={(e) => this.rowlayouts= e.nativeEvent.layout}
/>
this.rowlayouts.height //拿到当前控件的高度
//准备工作好了,下节讲仿微信朋友圈自动定位的实现