I used @react-native-community/slider for my app, but I'm facing a problem that it's height is not changing, it's width is changing but not height, anyone know why? and also I want to render value of slider like in the blue container inside the slider thumb, is there a way to do that? Please Help
That's my code of slider
<View>
<Text style={[style.fontSize15Med, styles.font15]}>
Number of surveys
</Text>
<View style={styles.daysCont}>
<Text style={[style.fontSize12Med, styles.surveys]}>
{this.state.surveys}
</Text>
</View>
<Slider
style={{width: 320, height: 30, marginLeft: 40}}
minimumValue={0}
maximumValue={10}
step={1}
maximumTrackTintColor={colors.DarkBlue}
minimumTrackTintColor={colors.primary}
thumbTintColor={colors.skyBlue}
value={this.state.surveys}
onValueChange={(val) => this.setState({surveys: val})}
/>
</View>
