Skip to main content

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 '@nexara/nativeflow';
import { Check } from 'lucide-react-native';

const Component = () => {
return (
<Icon renderIcon={<Check color='#000' size={16} />} />
);
}
export default Component;

Props

PropTypeDefaultDescription
colorstringOptional override color for the icon. If not provided, it uses the color from the theme or the icon’s own color prop.
renderIconJSX.ElementThe icon component to be rendered. The size will automatically scale based on screen size using.