Last Updated on : 2024-06-05 03:14:34download
RotationView
is a view container that encapsulates the animation that needs to be rotated.
Note: for more information, see Demo.
You can set whether the container rotates by passing in the active
property.
import { RotationView } from "tuya-panel-kit";
<RotationView active={this.state.active}>
<View style={styles.wrApperStyle}>
<TYText style={{ textAlign: "center" }}>Rotation! ! ! </TYText>
</View>
</RotationView>;
RotationView
style.
Type | Required |
---|---|
ViewPropTypes.style | No |
Whether to enable the rotation animation.
Type | Required | Default value |
---|---|---|
bool | No | true |
The time of one rotation of the animation in milliseconds
.
Type | Required | Default value |
---|---|---|
number | No | 5000 |
Whether to use the native animation driver.
Type | Required | Default value |
---|---|---|
bool | No | false |
Nested child elements of RotationView
.
Type | Required |
---|---|
PropTypes.node |
No |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback