22 lines
595 B
JavaScript
22 lines
595 B
JavaScript
|
import React from 'react';
|
||
|
import {StyleSheet} from 'react-native';
|
||
|
import PropTypes from 'prop-types';
|
||
|
import Icon from 'react-native-vector-icons/FontAwesome5';
|
||
|
import styles from './styles';
|
||
|
|
||
|
export default function Index(props) {
|
||
|
const {style, enableRTL, ...rest} = props;
|
||
|
const layoutStyle = enableRTL ? styles.styleRTL : {};
|
||
|
return <Icon style={StyleSheet.flatten([style, layoutStyle])} {...rest} />;
|
||
|
}
|
||
|
|
||
|
Index.propTypes = {
|
||
|
style: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
||
|
enableRTL: PropTypes.bool,
|
||
|
};
|
||
|
|
||
|
Index.defaultProps = {
|
||
|
style: {},
|
||
|
enableRTL: false,
|
||
|
};
|