Comments (3)
If you'd like to have this functionality supported out of the box, please consider sending a PR. As for now, you can use this workaround:
import { I18nManager } from 'react-native';
...
<Slider inverted={I18nManager.isRTL} />
from react-native-slider.
try this:
import { I18nManager } from 'react-native';
const styles = StyleSheet.create({
ttb: { transform: [{ rotate: '90deg' }] },
btt: { transform: [{ rotate: '-90deg' }] },
rtl: { transform: [{ scale: -1 }] },
auto: I18nManager.isRTL ? { transform: [{ scale: -1 }] } : {},
sliderContainer: {
flex: 1,
justifyContent: "center"
},
});
<View style={[styles.auto, styles.sliderContainer]}><Slider /></View>
from react-native-slider.
The inverted prop didn't work for me.
I added style={{direction:"ltr"}} to the Slider component but ot works only for ios.
from react-native-slider.
Related Issues (20)
- Android Type com.reactnativecommunity.slider.BuildConfig is defined multiple times HOT 10
- Height of seekbar not inscrease using style HOT 3
- Invariant Violation: requireNativeComponent: "RNCSlider" was not found in the UIManager. HOT 1
- React Native MacOS Error: "RNCSlider" was not found in the UIManager HOT 3
- Error when putting children inside `<Slider/>` component HOT 3
- How do i center thumbImage on top of step? HOT 11
- 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
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.