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