()
| 3 | import { useState } from "react"; |
| 4 | |
| 5 | export default function SlidersExample() { |
| 6 | const [sliderValue, setSliderValue] = useState(0.5); |
| 7 | |
| 8 | return ( |
| 9 | <View style={styles.container}> |
| 10 | <Text style={styles.header}>Slider Example</Text> |
| 11 | <Slider |
| 12 | value={sliderValue} |
| 13 | onValueChange={(v) => { |
| 14 | console.log("onValueChange", v); |
| 15 | setSliderValue(v); |
| 16 | }} |
| 17 | /> |
| 18 | <Text>Slider value: {sliderValue}</Text> |
| 19 | </View> |
| 20 | ); |
| 21 | } |
| 22 | |
| 23 | const styles = StyleSheet.create({ |
| 24 | container: { |
nothing calls this directly
no outgoing calls
no test coverage detected