2019-06-10 16:22:35 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { StyleSheet } from 'react-native';
|
|
|
|
|
2022-05-02 19:21:15 +00:00
|
|
|
import { CustomIcon } from './CustomIcon';
|
2022-04-07 14:10:03 +00:00
|
|
|
import { themes } from '../lib/constants';
|
2022-03-22 13:53:09 +00:00
|
|
|
import { useTheme } from '../theme';
|
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
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2022-03-22 13:53:09 +00:00
|
|
|
const Check = React.memo(() => {
|
|
|
|
const { theme } = useTheme();
|
|
|
|
return <CustomIcon style={styles.icon} color={themes[theme].tintColor} size={22} name='check' />;
|
|
|
|
});
|
2019-06-10 16:22:35 +00:00
|
|
|
|
|
|
|
export default Check;
|