added Ui fix for RTL in draft screen

This commit is contained in:
Sadaqat Ali 2021-12-31 11:46:46 +05:00
parent 994546f32c
commit 20a7836a02
2 changed files with 8 additions and 1 deletions

View File

@ -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',
},

View File

@ -175,7 +175,7 @@ const BasicHeaderView = ({
{isHasIcons && !isReply && (
<IconButton
style={{ marginHorizontal: 20 }}
iconStyle={[styles.backIcon, isModalHeader && styles.closeIcon]}
iconStyle={[styles.gearIcon, isModalHeader && styles.closeIcon]}
iconType="MaterialIcons"
name="settings"
onPress={handleSettingsPress && handleSettingsPress}