react-native-circular-progress 进

2018-11-08  本文已影响0人  JsLin_
image.png
const MAX_POINTS = 6000;
  const fill = degreTotal / MAX_POINTS * 100;


  <AnimatedCircularProgress
              size={150}
              width={10}
              fill={fill}
              tintColor="rgb(255,209,65)"
              onAnimationComplete={() => console.log('onAnimationComplete')}
              backgroundColor="rgb(255,249,217)">
              {(fill) => (
                <View style={styles.AnimateMonyDetailViewCotan}>
                  <View style={styles.AnimateMonyDetailView}>
                    <Text style={styles.canMony}>可借额度(元)</Text>
                    <Text style={styles.monyText}> {Math.round(MAX_POINTS * fill / 100)}</Text>
                    <Text style={styles.canMony}>总额度6000元</Text>
                  </View>
                </View>
              )}
            </AnimatedCircularProgress>
上一篇 下一篇

猜你喜欢

热点阅读