Usage
Using React Native

Using React Native

Integrating HugeIcons into your React Native project is straightforward. This page will guide you through the process of using HugeIcons React Native components in your application.

Importing an Icon

Once installed, you can import icons directly into your React components:

import { Home01Icon } from '@hugeicons/react-native';

Rendering an Icon

To render an icon, simply use it as a React Native component:

function App() {
  return (
    <View>
      <Text>Welcome to HugeIcons</Text>
      <Home01Icon size={32} color="blue" />
    </View>
  );
}
 
export default App;

In the example above, the Home01Icon component is included in a function component with a custom size and color.

Customizing Icons

You can customize icons further by using the variant and type properties:

<Home01Icon variant="solid" type="rounded" size={32} color="blue" />

By following these steps, you can effectively utilize HugeIcons in your React application, enhancing your project's design with beautiful icons.

This guide covers the basics of using the HugeIcons package with React Native: installation, importing, rendering, and customizing icons. Adjust the code examples to fit the exact syntax and usage patterns of the @hugeicons/react-native package.