File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11import { StyleSheet , Platform } from 'react-native' ;
22import * as defaultStyle from '../../style' ;
33import { Theme } from '../../types' ;
4+ import constants from '../../commons/constants' ;
45
56export default function ( theme : Theme = { } ) {
67 const appStyle = { ...defaultStyle , ...theme } ;
8+ const flipStyle = constants . isRTL ? { transform : [ { scaleX : - 1 } ] } : undefined ;
79 return StyleSheet . create ( {
810 header : {
911 flexDirection : 'row' ,
@@ -28,6 +30,7 @@ export default function (theme: Theme = {}) {
2830 ...appStyle . arrowStyle
2931 } ,
3032 arrowImage : {
33+ ...flipStyle ,
3134 tintColor : appStyle . arrowColor ,
3235 ...Platform . select ( {
3336 web : {
@@ -37,6 +40,7 @@ export default function (theme: Theme = {}) {
3740 } )
3841 } ,
3942 disabledArrowImage : {
43+ ...flipStyle ,
4044 tintColor : appStyle . disabledArrowColor
4145 } ,
4246 // @ts -expect-error
You can’t perform that action at this time.
0 commit comments