Closed xfishernet closed 3 years ago
const Example = () => {
const [viewHeight, setViewHeight] = useState(null);
const onViewLayout = event => {
setViewHeight(event.nativeEvent.layout.height);
}
return (
<SlidingUpPanel>
<View onLayout={onViewLayout}>
<Text>The hight of View is {viewHeight} pixels.</Text>
</View>
</SlidingUpPanel>
);
}
How to get current height of child View layout?