Skip to main content
Version: Next

Icon

Icon is a component which receives a icon from prop sets the size of icon according to screen size.

Example banner

Implementation code

import { Icon } from 'rn-nativeflow';
import { Check } from 'lucide-react-native';

const Component = () => {
return (
<Icon renderIcon={<Check color='#000' size={16} />} />
);
}
export default Component;
PropTypeDefaultDescription
renderIconJSX.ElementIt receives a icon and modify size prop on the basis of screen size