From 20a7836a020d3cbc9c5024464fb39e0a768e1f05 Mon Sep 17 00:00:00 2001 From: Sadaqat Ali Date: Fri, 31 Dec 2021 11:46:46 +0500 Subject: [PATCH] added Ui fix for RTL in draft screen --- src/components/basicHeader/view/basicHeaderStyles.js | 7 +++++++ src/components/basicHeader/view/basicHeaderView.js | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/basicHeader/view/basicHeaderStyles.js b/src/components/basicHeader/view/basicHeaderStyles.js index 04938f660..a2ea49919 100644 --- a/src/components/basicHeader/view/basicHeaderStyles.js +++ b/src/components/basicHeader/view/basicHeaderStyles.js @@ -1,4 +1,5 @@ import EStyleSheet from 'react-native-extended-stylesheet'; +import { NativeModules } from 'react-native'; export default EStyleSheet.create({ container: { @@ -15,6 +16,11 @@ export default EStyleSheet.create({ backIcon: { fontSize: 24, color: '$iconColor', + transform: [{ scaleX: NativeModules.I18nManager.isRTL ? -1 : 1 }], + }, + gearIcon: { + fontSize: 24, + color: '$iconColor', }, saveIcon: { fontSize: 20, @@ -45,6 +51,7 @@ export default EStyleSheet.create({ }, iconButton: { marginRight: 24, + marginLeft: NativeModules.I18nManager.isRTL ? 24 : 0, justifyContent: 'center', alignSelf: 'center', }, diff --git a/src/components/basicHeader/view/basicHeaderView.js b/src/components/basicHeader/view/basicHeaderView.js index a0482b012..a618653d3 100644 --- a/src/components/basicHeader/view/basicHeaderView.js +++ b/src/components/basicHeader/view/basicHeaderView.js @@ -175,7 +175,7 @@ const BasicHeaderView = ({ {isHasIcons && !isReply && (