Sliders with a Negative Min and Max Values are assigned '0' as Max value
@BartoszKlonowski がすでに取り組んでいます。
2022年8月16日 から。
評価
この issue はまだ評価されていません。
説明
Environment
info Fetching system and libraries information...
System:
OS: Windows 10 10.0.19044
CPU: (16) x64 Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
Memory: 19.72 GB / 31.78 GB
Binaries:
Node: 14.17.4 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.14.14 - C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
AllowAllTrustedApps: Enabled
Versions: 10.0.18362.0, 10.0.19041.0
IDEs:
Android Studio: Not Found
Visual Studio: 16.11.31605.320 (Visual Studio Professional 2019)
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 18.0.0 => 18.0.0
react-native: 0.69.0 => 0.69.0
react-native-windows: 0.69.5 => 0.69.5
npmGlobalPackages:
react-native: Not Found
Description
I'm working on a React Native Windows project running the latest version of "@react-native-community/slider": "^4.3.0". We don't support iOS or Android so I can't replicate for those platforms.
We have some sliders that work with wholey negative ranges, an example being (-102, -86).
When initally rendered, the slider has a range of (-102, 0), instead of the given range (-102, -86).
In development mode I can change the max value and the range will render correctly, so this seems to be an issue with the inital render.
See below video:
Reproducible Demo
import Slider from '@react-native-community/slider';
import React, { useState } from 'react';
import {
SafeAreaView,
Text,
} from 'react-native';
const App = () => {
const [valueText, setValueText] = useState(-86)
return (
<SafeAreaView style={{flexDirection:'row', justifyContent: 'center'}}>
<Slider
minimumValue={-102}
maximumValue={-86}
value={-86}
style={{width: 300, height:100}}
onValueChange={setValueText}
/>
<Text>{valueText}</Text>
</SafeAreaView>
);
};
export default App;
- 主要言語
- TypeScript
- スター
- 1.4k
- フォーク
- 295
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
callstack/react-native-slider のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
callstack/react-native-slider#828 ·
-
bug report
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
callstack/react-native-slider#769 ·
-
bug report platform: iOS
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
callstack/react-native-slider#782 · コメント 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
-
priority: P2
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
prime-radiant-inc/evener#3291 ·
メンテナーはふだん 1 日以内に返信
-
accessibility bug revealjs
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
quarto-dev/quarto-cli#14961 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
supabase/agent-skills#614 ·
-
Content
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
RunestoneInteractive/rs#1559 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信