Environment
System:
OS: macOS 13.1
CPU: (8) arm64 Apple M1 Pro
Memory: 162.08 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.6.0 - /opt/homebrew/bin/node
Yarn: Not Found
npm: 8.13.2 - /opt/homebrew/bin/npm
Watchman: 2022.07.04.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.16 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.3 => 0.67.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Description
Hi,
Since v4.2.4 the initial position of the thumb is wrong if the initial value is greater than 365 on IOS.
I didn't do the test on Android.
It seems that if initial value is greater than 365 the slide component always takes initial value 365.
For example, with the below code the thumb is in the middle of the slider instead of being at the end.
The thumb position is then fine for next renders update.
<Slider minimumValue={0} maximumValue={730} value={730} />
Environment
System:
OS: macOS 13.1
CPU: (8) arm64 Apple M1 Pro
Memory: 162.08 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 18.6.0 - /opt/homebrew/bin/node
Yarn: Not Found
npm: 8.13.2 - /opt/homebrew/bin/npm
Watchman: 2022.07.04.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
Android SDK: Not Found
IDEs:
Android Studio: 2021.2 AI-212.5712.43.2112.8609683
Xcode: 14.2/14C18 - /usr/bin/xcodebuild
Languages:
Java: 11.0.16 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.2 => 17.0.2
react-native: 0.67.3 => 0.67.3
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Description
Hi,
Since v4.2.4 the initial position of the thumb is wrong if the initial value is greater than 365 on IOS.
I didn't do the test on Android.
It seems that if initial value is greater than 365 the slide component always takes initial value 365.
For example, with the below code the thumb is in the middle of the slider instead of being at the end.
The thumb position is then fine for next renders update.
<Slider minimumValue={0} maximumValue={730} value={730} />