From 744a3207f308cd2c2d7f33cfbd3b87963c0e5aa9 Mon Sep 17 00:00:00 2001 From: Neriya Cohen <42520786+neriyaco@users.noreply.github.com> Date: Sun, 24 Nov 2024 09:52:29 +0200 Subject: [PATCH] Update TimeSelector.tsx --- src/components/TimeSelector.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TimeSelector.tsx b/src/components/TimeSelector.tsx index bcfed0f..216d0e6 100644 --- a/src/components/TimeSelector.tsx +++ b/src/components/TimeSelector.tsx @@ -1,5 +1,5 @@ import React, { useCallback } from 'react'; -import { Text, View, StyleSheet } from 'react-native'; +import { Text, View, StyleSheet, I18nManager } from 'react-native'; import { useCalendarContext } from '../CalendarContext'; import Wheel from './TimePicker/Wheel'; import { CALENDAR_HEIGHT } from '../enums'; @@ -69,7 +69,7 @@ const styles = StyleSheet.create({ flex: 1, }, timePickerContainer: { - flexDirection: 'row', + flexDirection: I18nManager.getConstants().isRTL ? 'row-reverse' : 'row', alignItems: 'center', justifyContent: 'center', width: CALENDAR_HEIGHT / 2,