Animation Loading

Last Updated on : 2021-09-18 05:30:32download

This topic describes the properties and example of the IP camera (IPC) animation loading component TYIpcLoading.

Preview

Animation Loading

Properties

Field Description Required Type Default value
show Specifies whether to show the component. No boolean true
showComplete Specifies whether to show the completed status. No boolean true
itemNum The number of loading dots. No number 3
loadSpeed The speed of the animation. No number 400
sequenceColor The sequenced colors. No string ‘#7087FF’
completeColor The color in the completed status. No string ‘#7087FF’
dotSize The size of loading dots. No number 6
onComplete Indicates whether the loading task is completed. No () => void () => {}
containerStyle The container style. No ViewStyle {}

Example

import { TYIpcLoading } from '@tuya/tuya-panel-ipc-sdk';

return (
  <View>
      <TYIpcLoading containerStyle={{ marginLeft: 50 }} />
  </View>
)