CountdownView

Last Updated on : 2021-08-30 03:48:08download

CountdownView

Preview

CountdownView

Properties

Field name Type Description Default value
value Number The current value of the countdown. 0
counting Boolean Specifies whether an analog clock is used. false
timeUnit String The maximum unit that is supported by the countdown. “s”
formatString String The format in which the countdown timer is displayed. “{0}:{1}:{2}”
countdownTextStyle Style The countdown text style. null

Sample code

import React from 'react'
import { CountdownView } from '@tuya/tuya-panel-electrician-sdk'

export default class Scene extends Component { 
  render() { 
    return  <CountdownView  value={55}  />; 
  } 
}