question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Slider vertical orientation not working

See original GitHub issue

Explain what you did (Required)

When setting the orientation prop in the Slider component to ‘vertical’ the Slider becomes unusable. (In mobile and web)

 <Slider
            value={val}
            minimumValue={0}
            allowTouchTrack={true}
            maximumValue={100}
            step={10}
            orientation='vertical'
            onValueChange={(value: number) => handleChange(value)}
            minimumTrackTintColor={colors.menu}
            maximumTrackTintColor={colors.white}
            thumbStyle={{ height: 10, width: 10, backgroundColor: 'green' }}
          />

Expected behavior (Required)

Expected for the slider to be displayed in a vertical fashion

Describe the bug (Required)

This is how the slider looks when I set the orientation to ‘vertical’: photo_2021-05-04_11-32-28

This is how it shoud look like photo_2021-05-04_11-33-20

To Reproduce (Required)

To reproduce the bug set ‘vertical’ in the orientation prop in the slider

Your Environment (Required):

software version
react-native-elements 3.4.1
react-native 0.64.0

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
flyingcirclecommented, May 10, 2021

Thanks @khushal87 and @arpitBhalla for working the solution here 😃

1reaction
khushal87commented, May 7, 2021

Thanks @arpitBhalla 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vertical Orientation does not work! · Issue #108 - GitHub
Vertical orientation does not work. I still have to transform it be 90 degrees and when I do, the slider does animate properly....
Read more >
jQuery nouislider Vertical Orientation Not Working
The slider is initialized properly; your js isn't at fault. Due to the nature of the CSS box model, elements don't assume a...
Read more >
Problem with vertical Range Slider with oval thumb control
The problem is that when the Orientation="SliderOrientation. Vertical" the slider does not operate at all. When Orientation="SliderOrientation.
Read more >
341071 - Impossible to style vertical input type=range. - Monorail
Just ran into this very problem. In order to make the slider vertical you have to add "-webkit-appearance: slider-vertical" but in order to ......
Read more >
vertical slider constraint | Apple Developer Forums
Hi all, i am using swift3 in xcode. I have made an application with 10 sliders which i rotate to vertical using:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found