Power Line

Last Updated on : 2021-12-22 09:34:52Copy for LLMView as Markdown

PowerLine

The power line component PowerLine supports animation settings.

Preview

Power Line

Properties

Field name Data type Description Default value
pathColor String The color of the path. '#0078FF'
animateTime Number The duration of the animation. 2000

Example

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;