vn-verdnaturachat/app/containers/Check.js

24 lines
545 B
JavaScript
Raw Normal View History

import React from 'react';
import { StyleSheet } from 'react-native';
2019-12-04 16:39:53 +00:00
import PropTypes from 'prop-types';
import { CustomIcon } from '../lib/Icons';
2019-12-04 16:39:53 +00:00
import { themes } from '../constants/colors';
const styles = StyleSheet.create({
icon: {
width: 22,
height: 22,
2019-12-04 16:39:53 +00:00
marginHorizontal: 15
}
});
const Check = React.memo(({ theme, style }) => <CustomIcon style={[styles.icon, style]} color={themes[theme].tintColor} size={22} name='check' />);
2019-12-04 16:39:53 +00:00
Check.propTypes = {
style: PropTypes.object,
2019-12-04 16:39:53 +00:00
theme: PropTypes.string
};
export default Check;