Skip to content

Commit

Permalink
fix: always display checkbox icon in LTR direction (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
avirankatzsofi authored and Trancever committed Apr 27, 2020
1 parent f2c67f9 commit ac3d8ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Checkbox/CheckboxAndroid.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Animated, View, StyleSheet, I18nManager } from 'react-native';
import { Animated, View, StyleSheet } from 'react-native';
import color from 'color';
import MaterialCommunityIcon from '../MaterialCommunityIcon';
import TouchableRipple from '../TouchableRipple';
Expand Down Expand Up @@ -145,7 +145,7 @@ class CheckboxAndroid extends React.Component<Props, State> {
name={icon}
size={24}
color={checkboxColor}
direction={I18nManager.isRTL ? 'rtl' : 'ltr'}
direction="ltr"
/>
<View style={[StyleSheet.absoluteFill, styles.fillContainer]}>
<Animated.View
Expand Down
4 changes: 2 additions & 2 deletions src/components/Checkbox/CheckboxIOS.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { StyleSheet, View, I18nManager } from 'react-native';
import { StyleSheet, View } from 'react-native';
import color from 'color';
import MaterialCommunityIcon from '../MaterialCommunityIcon';
import TouchableRipple from '../TouchableRipple';
Expand Down Expand Up @@ -92,7 +92,7 @@ class CheckboxIOS extends React.Component<Props> {
name={icon}
size={24}
color={checkedColor}
direction={I18nManager.isRTL ? 'rtl' : 'ltr'}
direction="ltr"
/>
</View>
</TouchableRipple>
Expand Down

0 comments on commit ac3d8ac

Please sign in to comment.