Default Image

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

AttributeTypeAccepted valuesDescriptionDefault
colorThemeColor stringThemeColorChange icon colortext
namestringIconNameName of icon to render-
sizenumberNumberSize icon18
onPressfunctionFunctiononPress function-
typeIconProvider stringIconProviderIcon provider typematerial

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!

DiscordGithub

Contributing:

PR's on @redshank/native are always welcome, please see our contribution guidelines to learn how you can contribute to this project.

Copyright © 2023 @redshank.