callstack / callstack/react-native-slider
feat(android): add disableAndroidRipple prop to remove SeekBar ripple
- 主要语言
- TypeScript
- 星标
- 1.4k
- 派生
- 295
- 平均合并
- 5 分钟
- 30 天内合并 PR
- 1
描述
## 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
贡献指南
调研方向
首先定位 Slider 的 Android 原生 SeekBar 入口点以及现有的 JS prop 定义。确认背景、前景 ripple 和状态动画器的行为在不同 Android API 级别之间有何差异,然后确认新 prop 的默认值为 false,启用后会禁用 ripple,否则保持现有行为不变。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- android, react-native
- 领域
- mobile-dev
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100