Icon

Icon component.

Icon component

Example usage:

import { Icon } from 'react-native-ios-kit';
<Icon
name={'ios-paper-outline'}
size={30}
color={'blue'}
/>

Theme

Uses following theme properties:

  • primaryColor - icon color

Props

color (optional)

type: string
default value: primaryColor from theme

Custom color for icon.

name

type: string | ImageSourcePropType | React.Node<*>

Icon name, can be:

size (optional)

type: number
default value: 50

Icon size.

style (optional)

type: Object

Custom styles to apply to the Icon.

theme (optional)

type: Theme

Custom theme for component. By default provided by the ThemeProvider.