Skip to content

add support to RTL #18

@mega4area

Description

@mega4area

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',
},
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions