Giter Club home page Giter Club logo

Comments (11)

joshuapinter avatar joshuapinter commented on May 28, 2024 24

We got it working with:

transform: [ { rotate: "-90deg" } ]

Note the negative 90 degrees. That helps slide things up and down in the correct direction.

vertical slider

from react-native-slider.

michalchudziak avatar michalchudziak commented on May 28, 2024 16

You can probably rotate view with your styles tho.

<Slider style={{ transform: [{ rotate: '90deg' }] }} />

Let me know if it doesn't work, I'll be glad to reopen that.

from react-native-slider.

dhruvalpatel18 avatar dhruvalpatel18 commented on May 28, 2024 7

I want multiple vertical sliders side by side with steps. Also, want to change the thumb with a different image. Using this library, if you rotate the slider, it keeps the width and height size same as before and so it doesn't work if you want multiple sliders in a row. Please provide any solution.

from react-native-slider.

CHaNGeTe avatar CHaNGeTe commented on May 28, 2024 2

Nope, I am considering using https://www.npmjs.com/package/rn-vertical-slider for the vertical one

from react-native-slider.

smartcris avatar smartcris commented on May 28, 2024 1

Meanwhile there is a nice tutorial here to make a vertical slider.

from react-native-slider.

YajanaRao avatar YajanaRao commented on May 28, 2024 1

I am not able to set height and width of slider. It is still behaving as horizontal slider in styles

from react-native-slider.

YajanaRao avatar YajanaRao commented on May 28, 2024 1

I had to use React Native Elements Slider with orientation= vertical

from react-native-slider.

blakeperdue avatar blakeperdue commented on May 28, 2024

@CHaNGeTe did you have any luck? I tried this but the sliding on Android is odd ... it's hard to get it to move and when it does it often moves in the opposite direction of the gesture.

from react-native-slider.

YajanaRao avatar YajanaRao commented on May 28, 2024

Link to snack reproducible code:
https://snack.expo.io/@yajana/slider

from react-native-slider.

karpov-denys avatar karpov-denys commented on May 28, 2024

orientation= vertical

Hi. Could you specify how you get vertical slider from React Native Elements Slider?
My code is
`<View
style={{ flex: 1 }}

    <Slider
      orientation="vertical"
      trackStyle={{ height: 10, backgroundColor: "lightgrey" }}
      thumbStyle={{ height: 40, width: 40, backgroundColor: "red" }}
    />

`

But my slider is still horizontal

from react-native-slider.

tiwari-ashwani avatar tiwari-ashwani commented on May 28, 2024

Still not able to allign the slider vertically, any luck anybody?

from react-native-slider.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.