Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

Progress.Circle在使用中,有两个异常 1.切换颜色会导致部分边角颜色还是上一个颜色。2.更改进度条进度不立即刷新。 #10

@Xiiyy

Description

@Xiiyy

progress库依赖SVG提供的能力,待SVG整改
demo参考:

    <Text style={styles.welcome}>Progress Circle progress</Text>
    <View style={styles.circles}>
      <Progress.Circle
        style={styles.progress}
        progress={progress}
      />
      <Progress.Circle
        style={styles.progress}
        progress={progressCircle}
        animated={false}
      />
    </View>
    <View style={styles.view}>
      <Button
        title="0%"
        onPress={progressCircleCounter0}
      />

      <Button
        title="10%"
        onPress={progressCircleCounter1}
      />

      <Button
        title="50%"
        onPress={progressCircleCounter5}
      />

      <Button
        title="70%"
        onPress={progressCircleCounter7}
      />

      <Button
        title="100%"
        onPress={progressCircleCounter10}
      />
    </View>

    <Text style={styles.welcome}>Progress Circle color</Text>
    <View style={styles.circles}>
      <Progress.Circle
        style={styles.progress}
        borderWidth={5}
      />
      <Progress.Circle
        style={styles.progress}
        borderWidth={5}
        color={color}
      />
    </View>
    <View style={styles.view}>
      <Button
        title="Red"
        onPress={colorCounterRed}
      />

      <Button
        title="Green"
        onPress={colorCounterGreen}
      />

      <Button
        title="Blue"
        onPress={colorCounterBlue}
      />

      <Button
        title="Yellow"
        onPress={colorCounterYellow}
      />
    </View>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions