79704059

Date: 2025-07-16 22:00:25
Score: 1.5
Natty:
Report link

Probably too late to the party but building on top of @Dakai Ou answer I achieved the following effect, using @miblanchard/react-native-slider and the react-native-linear-gradient:

enter image description here

<LinearGradient
  colors={["#e2e8f0", "#f1f5f9", "#fbbf24"]}
  start={{ x: 0, y: 0 }}
  end={{ x: 1, y: 0 }}
  style={[
    styles.linearGradient,
    {
      position: "absolute",
      left: 0,
      right: 0,
      top: "50%",
      transform: [{ translateY: -5 }],
    },
  ]}
/>
<Slider
  minimumTrackTintColor={"transparent"}
  maximumTrackTintColor={"transparent"}
  thumbStyle={{
    backgroundColor: "white",
    width: 24,
    height: 24,
    borderColor: "black",
    borderWidth: 1,
    borderRadius: 12,
    position: "absolute",
    top: "50%",
    marginTop: -12,
  }}
/>
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @answer
  • Low reputation (0.5):
Posted by: PanZWarzywniaka