Ver código fonte

Fix misaligned back button on Header

Savio Fernando 1 ano atrás
pai
commit
c85bfe7409
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/components/atoms/Header/Header.js

+ 1 - 1
src/components/atoms/Header/Header.js

@@ -24,7 +24,7 @@ const Header = ({ headerStyle, children, backButtonShown, onBackClick, backIconT
     <View style={[styles.headerContainer, headerStyle]}>
 
       <View style={{ flexDirection: 'row', gap: horizontalScale(4), alignItems: 'center' }}>
-        {backButtonShown === true && backButtonShown !== undefined ? <TouchableOpacity style={{ paddingHorizontal: 8 }} onPress={onBackClick}>
+        {backButtonShown === true && backButtonShown !== undefined ? <TouchableOpacity style={{ paddingHorizontal: horizontalScale(8) }} onPress={onBackClick}>
           <FeatherIcon name='chevron-left' size={24} color={colors().recessive} />
         </TouchableOpacity> : <></>}
         {backIconTextComponent}