Comments (11)
We got it working with:
transform: [ { rotate: "-90deg" } ]
Note the negative 90 degrees. That helps slide things up and down in the correct direction.
from react-native-slider.
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.
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.
Nope, I am considering using https://www.npmjs.com/package/rn-vertical-slider for the vertical one
from react-native-slider.
Meanwhile there is a nice tutorial here to make a vertical slider.
from react-native-slider.
I am not able to set height and width of slider. It is still behaving as horizontal slider in styles
from react-native-slider.
I had to use React Native Elements Slider with orientation
= vertical
from react-native-slider.
@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.
Link to snack reproducible code:
https://snack.expo.io/@yajana/slider
from react-native-slider.
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.
Still not able to allign the slider vertically, any luck anybody?
from react-native-slider.
Related Issues (20)
- Vertical prop is not working HOT 1
- How can I hide the slider from the screen? HOT 5
- Bar height - Is it possible increase the height of the bar? HOT 2
- not working on iOS and Android, only web? HOT 6
- Invariant Violation: requireNativeComponent: "RNCSlider" was not found in the UIManager. HOT 4
- Unable to build on latest version of Xcode | ContextContainer.h not found HOT 4
- property "disabled" doesn't work on Android (4.4.2) HOT 2
- Slider with steps indicator, custom thumb component and more to come... HOT 7
- seekTo() make position back to 0
- Documentation should be kept in GH Pages instead of README.
- When maximumValue changed value returns to last "clicked" position on Android
- How to use Tap in Android? HOT 2
- useState callback do not execute inside onSlidingComplete using tap. HOT 1
- Custom thumb image in Android becomes huge in contrary of iOS which is the the requested size HOT 2
- Clarification on `onValueChange` Behavior Across Platforms HOT 2
- lowerLimit for web HOT 1
- Wrong in Task :react-native-community_slider:compileReleaseJavaWithJavac FAILED
- Issue with Thumb Positioning in Web Implementation
- onValueChange triggers an extra time after onSlidingCompleted on Android HOT 2
- Android: StackOverflow when `lowerLimit` is greater than `upperLimit` (and, on some devices, when the slider first loads) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-slider.