You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
const [color, setColor] = React.useState('red');
const colorCounter = () => {
setColor(count => {
if (count == 'red') {
return 'green';
}
if (count == 'green') {
return 'blue';
}
if (count == 'blue') {
return 'yellow';
}
if (count == 'yellow') {
return 'red';
}
return 'green'
});
};
color,borderWith,borderColor 属性在进行直接配置的时候如:color={‘red’} 显示正常,但是在通过button进行动态配置的时候中间的圆会显示黑色和默认的颜色不一致,需要定位修改,具体demo可以参考:https://github.com/react-native-oh-library/RNOHDCS/blob/main/progressDemo/progressPie.tsx