Last Updated on : 2021-08-27 11:07:18download
TYIpcLayoutAtuo
supports an adaptive content layout based on the relative height of the content and container. The following rules are supported:
Field name | Type | Description | Default value |
---|---|---|---|
containerHeight | number | The height of the container. | 100 |
containerStyle | ViewStyle | The style of the container. | {} |
mainContentStyle | ViewStyle | The style of the content container. | {} |
scrollProps | object | The attributes supported by ScrollView. | {} |
children | Component | Any custom child component. | null |
import { TYIpcLayoutAtuo } from '@tuya/tuya-panel-ipc-sdk';
...
const containerLargeHeight = 300;
<View style={{ height: containerLargeHeight}} >
<TYIpcLayoutAuto containerHeight={containerLargeHeight}>
// The custom child component.
<Example />
</TYIpcLayoutAuto>
</View>
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback