react-native-circular-progress icon indicating copy to clipboard operation
react-native-circular-progress copied to clipboard

the img will hide in android

Open zSergeant opened this issue 6 years ago • 3 comments

<AnimatedCircularProgress size={64} width={2} backgroundWidth={2} fill={34} tintColor="#00e0ff" backgroundColor="#3d5875" lineCap="round" rotation={0} > {fill => <Image style={{ borderRadius: 27, width: 54, height: 54 }} source={require('../images/photo.png')} /> } </AnimatedCircularProgress>

WeChatbfceafd0ad33d103f79be783e06bbd8c

zSergeant avatar Apr 26 '19 06:04 zSergeant

ios WeChatba808d8b6ffc6a19bf7b7f2ebef67672

zSergeant avatar Apr 26 '19 06:04 zSergeant

I changed the style of childContainerStyle in CircularProgress; const childContainerStyle = { position: 'absolute', left: width, top: width, width: offset, height: offset, borderRadius: offset / 2, alignItems: 'center', justifyContent: 'center', overflow: 'hidden', zIndex:0 };

zSergeant avatar Apr 26 '19 07:04 zSergeant

image works fine make sure your image is smaller than the component AnimatedCircularProgress size={200} width={15} rotation={0} fill={Store.connectProgress} tintColor={Color.rightGreen} backgroundColor={Color.superlight} lineCap="round" > {fill => ( <View style={styles.imageTextContainer}> <Image source={bikeImage} style={{width: scale(71), height: verticalScale(60),}} /> <Text style={styles.imageText}> {Store.selectedBike.device_id} {fill === 51 ? 50 : Math.round(fill)}% </Text> </View> )} </AnimatedCircularProgress

navneet7723 avatar Jan 10 '20 09:01 navneet7723