nerdyfactory / react-native-simple-gauge

Gauge progress module for React Native (iOS and Android)
MIT License
99 stars 34 forks source link

Image inside Gauge is not showing #37

Closed ghost closed 4 years ago

ghost commented 6 years ago

When doing something like the following code: adding Image inside the Gauge component, the image is not showing. If doing the same with Text the text appears correctly.

<GaugeProgress
        size={size}
        width={width}
        fill={this.state.fill}
        cropDegree={cropDegree}
        ......
      >
        <View style={styles.textView}>
          <Image source={require('...some path to image file...')} />
        </View>
</GaugeProgress>
AylwSt01 commented 6 years ago

i found that the view in which the gauge component sits, needs to have a transparent backgroundColor for anything to display inside the gauge. I hope this helps you... the author seems to be non-responsive right now!

JonghunYu commented 4 years ago

close due to inactivity