22 lines
490 B
TypeScript
22 lines
490 B
TypeScript
import React from 'react';
|
|
import { StyleSheet } from 'react-native';
|
|
|
|
import { CustomIcon } from '../lib/Icons';
|
|
import { themes } from '../constants/colors';
|
|
import { useTheme } from '../theme';
|
|
|
|
const styles = StyleSheet.create({
|
|
icon: {
|
|
width: 22,
|
|
height: 22,
|
|
marginHorizontal: 15
|
|
}
|
|
});
|
|
|
|
const Check = React.memo(() => {
|
|
const { theme } = useTheme();
|
|
return <CustomIcon style={styles.icon} color={themes[theme].tintColor} size={22} name='check' />;
|
|
});
|
|
|
|
export default Check;
|