Skip to content

Commit ac3d8ac

Browse files
avirankatzsofiTrancever
authored andcommitted
fix: always display checkbox icon in LTR direction (#1864)
1 parent f2c67f9 commit ac3d8ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/components/Checkbox/CheckboxAndroid.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { Animated, View, StyleSheet, I18nManager } from 'react-native';
2+
import { Animated, View, StyleSheet } from 'react-native';
33
import color from 'color';
44
import MaterialCommunityIcon from '../MaterialCommunityIcon';
55
import TouchableRipple from '../TouchableRipple';
@@ -145,7 +145,7 @@ class CheckboxAndroid extends React.Component<Props, State> {
145145
name={icon}
146146
size={24}
147147
color={checkboxColor}
148-
direction={I18nManager.isRTL ? 'rtl' : 'ltr'}
148+
direction="ltr"
149149
/>
150150
<View style={[StyleSheet.absoluteFill, styles.fillContainer]}>
151151
<Animated.View

src/components/Checkbox/CheckboxIOS.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { StyleSheet, View, I18nManager } from 'react-native';
2+
import { StyleSheet, View } from 'react-native';
33
import color from 'color';
44
import MaterialCommunityIcon from '../MaterialCommunityIcon';
55
import TouchableRipple from '../TouchableRipple';
@@ -92,7 +92,7 @@ class CheckboxIOS extends React.Component<Props> {
9292
name={icon}
9393
size={24}
9494
color={checkedColor}
95-
direction={I18nManager.isRTL ? 'rtl' : 'ltr'}
95+
direction="ltr"
9696
/>
9797
</View>
9898
</TouchableRipple>

0 commit comments

Comments
 (0)