import * as React from 'react';
import { Platform, I18nManager, View, Image, StyleSheet } from 'react-native';
import MaterialCommunityIcon from 'react-native-vector-icons/MaterialCommunityIcons';
const HeaderBackIcon = _ref => {
  let {
    size,
    color
  } = _ref;
  const iosIconSize = size - 3;
  return Platform.OS === 'ios' ? /*#__PURE__*/React.createElement(View, {
    style: [styles.wrapper, {
      width: size,
      height: size,
      transform: [{
        scaleX: I18nManager.getConstants().isRTL ? -1 : 1
      }]
    }]
  }, /*#__PURE__*/React.createElement(Image, {
    source: require('../../assets/back-chevron.png'),
    style: [styles.icon, {
      tintColor: color,
      width: iosIconSize,
      height: iosIconSize
    }],
    accessibilityIgnoresInvertColors: true
  })) : /*#__PURE__*/React.createElement(MaterialCommunityIcon, {
    name: "chevron-left",
    color: color,
    size: size,
    style: [{
      transform: [{
        scaleX: I18nManager.getConstants().isRTL ? -1 : 1
      }],
      lineHeight: size
    }, {
      backgroundColor: 'transparent'
    }]
  });
};
const styles = StyleSheet.create({
  wrapper: {
    alignItems: 'center',
    justifyContent: 'center'
  },
  icon: {
    resizeMode: 'contain'
  }
});
export default HeaderBackIcon;

// @component-docs ignore-next-line
export { HeaderBackIcon };
//# sourceMappingURL=BackIcon.js.map