Last Updated on : 2021-12-22 09:34:52
The power line component PowerLine
supports animation settings.
Field name | Data type | Description | Default value |
---|---|---|---|
pathColor | String | The color of the path. | ‘#0078FF’ |
animateTime | Number | The duration of the animation. | 2000 |
import React from 'react';
import { View } from 'react-native';
import { PowerLine } from '@tuya/tuya-panel-electrician-sdk';
const Scene = () => (
<View style={{ flex: 1, alignItems: 'center', backgroundColor: '#fff', paddingTop: 100 }}>
<PowerLine />
</View>
);
export default Scene;
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback