When maximumValue changed value returns to last "clicked" position on Android
@draggie đang làm issue này rồi.
Từ ngày 18/9/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Environment
Both Expo and standard react-native
- react-native info output:
System:
OS: Windows 10 10.0.22621
CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-1280P
Memory: 1.01 GB / 15.71 GB
Binaries:
Node:
version: 20.7.0
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 1.22.19
path: C:\Program Files\nodejs\yarn.CMD
npm:
version: 10.1.0
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK: Not Found
IDEs:
Android Studio: AI-223.8836.35.2231.10671973
Visual Studio: Not Found
Languages:
Java:
version: 11.0.2
path: C:\Users\kafka\AppData\Local\jdk-11.0.2\bin\javac.EXE
Ruby: Not Found
npmPackages:
"@react-native-community/cli":
installed: 10.1.3
wanted: ^10.1.3
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.4
wanted: ^0.72.4
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
-
are you using the new architecture?
-
which version of react & react-native are you using?
-
- Localy:
-
-
- React: 18.2.0
-
-
-
- React-Native: 7.4.0
-
-
-
- Slider: 4.4.3
-
-
- Expo:
-
-
- Expo: 47 (when using 48 or 49 I got this error https://github.com/callstack/react-native-slider/issues/527)
-
-
-
- Slider: 4.2.4
-
Description
When changing maximumValue value returns to last "clicked" value instead of "slided value" when using onValueChange only on Android(iOS and Web works as expected). When using onSlidingComplete it works as expected.
Sliding
Using onValueChange
- Slide from 0 to 5
- Change the max value
After change value is set to 0
Using onSlidingCompleted
- Slide from 0 to 5
- Change the max value
After change value is set to 5
Clicking (only Android and Web, clicking the slider doesn't work on iOS)
Using onValueChange
- Click to 5 on slider
- Change the max value
After change value is set to 5
Using onSlidingCompleted
- Click to 5 on slider
- Change the max value
After change value is set to 5
Android
iOS
Web
Reproducible Demo
Expo project:
https://snack.expo.dev/@radimkafka/rnc-slider-bug?platform=android
Code can be copied to RN project and it works the same.
- Ngôn ngữ chính
- TypeScript
- Star
- 1.4k
- Fork
- 296
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của callstack/react-native-slider
-
Web: value={0} with a negative minimumValue renders the thumb at the minimumCó thể đã có người làm @huytdps13400 đã nhận 9 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
callstack/react-native-slider#828 ·
-
Missing peerDependencies for react and react-native causes duplicate React instances in pnpm monoreposCó thể đã có người làm @patrickwehbe đã nhận 113 ngày trước. Đang mởbug report
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
callstack/react-native-slider#769 ·
-
bug report platform: iOS v6
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
callstack/react-native-slider#782 · 6 bình luận ·
-
iOS: negative min value and 0 as maximum value turns maximum to 1Có thể đã có người làm @huytdps13400 đã nhận 7 ngày trước. Đang mởbug report
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 65/100
callstack/react-native-slider#780 · 1 bình luận ·
-
bug report
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
callstack/react-native-slider#767 ·
Tất cả issue của callstack/react-native-slider