Icon
Icon wrapper to React Native Vector Icon.
import { Icon } from '@redshank/native';
Examples
Default
You can display an icon with just text or image
APIs
Icon Props
More props in react-native-vector-icons
Attribute | Type | Accepted values | Description | Default |
---|---|---|---|---|
color | ThemeColor string | ThemeColor | Change icon color | text |
name | string | IconName | Name of icon to render | - |
size | number | Number | Size icon | 18 |
onPress | function | Function | onPress function | - |
type | IconProvider string | IconProvider | Icon provider type | material |
Icon Provider
type IconProvider = | 'material' | 'material-community' | 'simple-line-icon' | 'zocial' | 'font-awesome' | 'octicon' | 'ionicon' | 'foundation' | 'evilicon' | 'entypo' | 'antdesign' | 'font-awesome-5' | string;
Community:
We're excited to see the community adopt @redshank/native, raise issues, and provide feedback. Whether it's a feature request, bug report, or a project to showcase, please get involved!
DiscordGithubContributing:
PR's on @redshank/native are always welcome, please see our contribution guidelines to learn how you can contribute to this project.