Open gaowei1012 opened 3 years ago
<TouchableOpacity
style={styles.sendCode}
activeOpacity={1}
onPress={handleSendCode}
disabled={disabled}>
<View style={styles.timerBox}>
<Text style={styles.timerText}>
{count ? `${count}秒后获取` : '获取验证码'}
</Text>
</View>
</TouchableOpacity>
const handleSendCode =useCallback(() => {
setCount(59);
}, [])