Sliders with a Negative Min and Max Values are assigned '0' as Max value
@BartoszKlonowski đang làm issue này rồi.
Từ ngày 16/8/2022.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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;
- Ngôn ngữ chính
- TypeScript
- Star
- 1.4k
- Fork
- 295
- 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
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
-
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
Độ 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 ·
-
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 ·
-
bug report platform: iOS
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
callstack/react-native-slider#758 · 4 bình luận ·
Tất cả issue của callstack/react-native-slider
Issue tương tự
-
ADD openalgoĐang mởtemplate
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
factory-active factory-automatic task-bug-reproduction-success task-identify-harness-labels-done task-identify-issue-type-done
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
vercel/ai#21528 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug Needs: Triage :mag:
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
microsoft/fluentui-contrib#671 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
sveltejs/acorn-typescript#150 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100