react-native-hsv-color-picker icon indicating copy to clipboard operation
react-native-hsv-color-picker copied to clipboard

add support to RTL

Open mega4area opened this issue 4 years ago • 0 comments
trafficstars

To add RTL support to this lib.

go inside library files in node_modules and found file name SaturationValuePicker.js

First:

import { I18nManager, } from 'react-native';

and then change this code inside the file to this:

const styles = StyleSheet.create({ container: { justifyContent: 'center', alignItems: 'center', }, slider: { top: 0, right: I18nManager.isRTL ? 0 : null, left: I18nManager.isRTL ? null :0, position: 'absolute', borderColor: '#fff', }, linearGradient: { overflow: 'hidden', }, });

mega4area avatar Feb 07 '21 11:02 mega4area