UNPKG

@react-native-vector-icons/ionicons

Version:
57 lines (36 loc) 1.29 kB
# React Native Vector Icons - Ionicons Ionicons font for React Native Vector Icons See the [React Native Vector Icons README](../../README.md) for more details. ## Installation ```sh npm install @react-native-vector-icons/ionicons ``` ## Usage ```jsx import { Ionicons } from '@react-native-vector-icons/ionicons/static'; // or with dynamic font loading (see the Expo setup guide for details) import { Ionicons } from '@react-native-vector-icons/ionicons'; // ... <Ionicons name="house" color="#ff0000" size={20} /> ``` ### Expo Config Plugin This package ships an [Expo config plugin](../../docs/SETUP-EXPO.md). Add it to the `plugins` array in your `app.json` or `app.config.js` if you use static imports: ```json { "expo": { "plugins": ["@react-native-vector-icons/ionicons"] } } ``` ## Versions Prior to version 12, the version of this font package tracked the upstream version. The table below tracks which font version is included in each package version. | RNVI version | Upstream version | | ------------ | ---------------- | | &gt; 12.0.0 | 7.4.0 | | &gt; 12.0.1 | 8.0.8 | | &gt; 12.4.1 | 8.0.13 | ## Contributing See the [contributing guide](../../CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow. ## License MIT