When maximumValue changed value returns to last "clicked" position on Android
@draggie がすでに取り組んでいます。
2024年9月18日 から。
評価
この issue はまだ評価されていません。
説明
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.
- 主要言語
- TypeScript
- スター
- 1.4k
- フォーク
- 296
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
callstack/react-native-slider のほかの issue
-
Web: value={0} with a negative minimumValue renders the thumb at the minimum対応中かも @huytdps13400 が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
callstack/react-native-slider#828 ·
-
Missing peerDependencies for react and react-native causes duplicate React instances in pnpm monorepos対応中かも @patrickwehbe が 112 日前に担当しました。 オープンbug report
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
callstack/react-native-slider#769 ·
-
bug report platform: iOS v6
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
callstack/react-native-slider#782 · コメント 6 件 ·
-
iOS: negative min value and 0 as maximum value turns maximum to 1対応中かも @huytdps13400 が 6 日前に担当しました。 オープンbug report
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
callstack/react-native-slider#780 · コメント 1 件 ·
-
bug report
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
callstack/react-native-slider#767 ·
callstack/react-native-slider の issue をすべて見る
似ている issue
-
awaiting-response bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
wildcard/caro#1562 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
supadata-ai/mcp#27 ·
-
content
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cosimochellini/one-piece-zero-spoiler#516 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
capricorn86/happy-dom#2485 ·
メンテナーはふだん 2 日以内に返信
-
lane: fast
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
unicef/adt-studio#946 ·
メンテナーはふだん 2 日以内に返信