Skip to content

Slider min and max tracks not aligned. #55

@OlivierHartmann

Description

@OlivierHartmann

Is there an existing issue for this?

  • I have searched the existing issues

Explain what you did

Hi,
I've migrated from expo 52 to expo 53, meaning to React 19.0.0, and so on.

But since the upgrade I have a problem with the Slider. The min track is not aligned with the max track anymore. It gives me that now on Android and iOS:

Image

While on web it's still the good expected behavior :

Image

Expected behavior

Same result than on web, with the min track over the max track.

Describe the bug

the min track is not aligned with the max track anymore

Steps To Reproduce

I'm using a slider like that :

<Slider
	disabled={disabled}
	style={[
		{
			width: "100%",
			justifyContent: "center",
			alignItems: "stretch",
		},
		{ opacity: typedAnswer.answered ? 1 : 0.5 },
	]}
	value={2}
	step={1}
	onValueChange={onValueChange}
	maximumValue={5}
	minimumValue={0}
	allowTouchTrack={!disabled}
	minimumTrackTintColor={"purple"}
	maximumTrackTintColor={"green"}
	trackStyle={{ height: 15, borderRadius: 16 }}
	thumbStyle={{ height: 44, width: 13, borderRadius: 2, backgroundColor: "pink" }}
/>

Screenshots

No response

Your Environment

I'm using the latest :

	"@rn-vui/base": "^5.1.10",
	"@rn-vui/themed": "^5.1.10",

I tried to downgrade to 5.0.0, and even back to rneui 4.0.0.rc... But still the same. It looks like a design problem of the component.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions