Revert "BREAKING: TextInput RTL support (#499)"

This reverts commit 59853b4614.
This commit is contained in:
Satyajit Sahoo
2018-09-01 12:52:38 +02:00
parent 08678070f2
commit 4718fdb4ff

View File

@@ -6,7 +6,6 @@ import {
Animated,
TextInput as NativeTextInput,
StyleSheet,
I18nManager,
} from 'react-native';
import { polyfill } from 'react-lifecycles-compat';
import color from 'color';
@@ -441,7 +440,6 @@ class TextInput extends React.Component<Props, State> {
? styles.multilineWithLabel
: styles.multilineWithoutLabel
: null,
I18nManager.isRTL ? styles.rtlDirection : styles.ltrDirection,
{
color: inputTextColor,
fontFamily,
@@ -525,10 +523,4 @@ const styles = StyleSheet.create({
focusLine: {
height: StyleSheet.hairlineWidth * 4,
},
ltrDirection: {
textAlign: 'left',
},
rtlDirection: {
textAlign: 'right',
},
});