callstack / callstack/react-native-slider

feat(android): add disableAndroidRipple prop to remove SeekBar ripple

Aperta
#731 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
feature request
Lingua principale
TypeScript
Stelle
1.4k
Fork
295
Merge medio
5m
PR unite (30g)
1

Descrizione

## Problem
On Android the slider uses the native SeekBar which draws a platform ripple around the thumb when pressed. There is currently no supported way to disable or customize this ripple from JS. That prevents apps from implementing custom thumb overlays or matching certain visual designs without editing native code or changing app themes.

## Proposal
Add an opt-in boolean prop `disableAndroidRipple` (default: false) on Android that removes background/foreground ripple/state animator on the native SeekBar. This should be non-breaking (opt-in) and implemented defensively for OEM quirks / API levels.

## Example usage
```jsx

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.