2019-06-10 16:22:35 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { StyleSheet } from 'react-native';
|
|
|
|
|
|
|
|
import { CustomIcon } from '../lib/Icons';
|
2019-12-04 16:39:53 +00:00
|
|
|
import { themes } from '../constants/colors';
|
2019-06-10 16:22:35 +00:00
|
|
|
|
2021-07-19 19:52:45 +00:00
|
|
|
type TCheck = {
|
2021-07-26 22:58:52 +00:00
|
|
|
style?: object,
|
2021-07-19 19:52:45 +00:00
|
|
|
theme: string
|
|
|
|
}
|
2019-06-10 16:22:35 +00:00
|
|
|
const styles = StyleSheet.create({
|
|
|
|
icon: {
|
|
|
|
width: 22,
|
|
|
|
height: 22,
|
2019-12-04 16:39:53 +00:00
|
|
|
marginHorizontal: 15
|
2019-06-10 16:22:35 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2021-07-19 19:52:45 +00:00
|
|
|
const Check = React.memo(({ theme, style }: TCheck) => <CustomIcon style={[styles.icon, style]} color={themes[theme].tintColor} size={22} name='check' />);
|
2019-06-10 16:22:35 +00:00
|
|
|
|
|
|
|
export default Check;
|