mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-14 09:59:26 +08:00
Revert "BREAKING: TextInput RTL support (#499)"
This reverts commit 59853b4614.
This commit is contained in:
@@ -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',
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user