verdnatura-chat/app/containers/Check.tsx

22 lines
492 B
TypeScript
Raw Normal View History

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';
type TCheck = {
style?: object,
theme: string
}
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 }: TCheck) => <CustomIcon style={[styles.icon, style]} color={themes[theme].tintColor} size={22} name='check' />);
export default Check;