From 8571551f673d3234d89062861b20f3d4fd279cda Mon Sep 17 00:00:00 2001 From: Azim Atefi Date: Mon, 2 Dec 2019 13:22:16 +0330 Subject: [PATCH] Fixing RTL issue. In RTL languages Timers Never Reverse. --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 41580fb..ac5b9a5 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,8 @@ import { View, Text, TouchableOpacity, - AppState + AppState, + I18nManager } from 'react-native'; import _ from 'lodash'; import {sprintf} from 'sprintf-js'; @@ -229,7 +230,7 @@ CountDown.defaultProps = { const styles = StyleSheet.create({ timeCont: { - flexDirection: 'row', + flexDirection: I18nManager.isRTL ? 'row-reverse' : 'row', justifyContent: 'center', }, timeTxt: {