From ce91d5317cb179b0ed9bdbc20e51b5f94082ddbf Mon Sep 17 00:00:00 2001 From: kir Date: Sun, 13 Aug 2017 17:20:42 +0300 Subject: [PATCH 1/2] Added RTL support for text-input. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index a81672f..f32b370 100644 --- a/index.js +++ b/index.js @@ -220,7 +220,8 @@ const styles = StyleSheet.create({ valueText: { height: (Platform.OS == 'ios' ? 20 : 60), fontSize: 16, - color: '#111111' + color: '#111111', + textAlign: (I18nManager.isRTL ? 'right' : 'left') }, focused: { color: "#1482fe" From 2926cdbd276a0d946619fbe727f80c563b6dd90c Mon Sep 17 00:00:00 2001 From: kir Date: Sun, 13 Aug 2017 17:22:16 +0300 Subject: [PATCH 2/2] Added I18nManager in import. --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index f32b370..b39f4be 100644 --- a/index.js +++ b/index.js @@ -5,7 +5,8 @@ import { View, TextInput, Animated, - Platform + Platform, + I18nManager } from 'react-native' class FloatingLabel extends Component {