microsoft / fluentui-system-icons

Fluent System Icons are a collection of familiar, friendly and modern icons from Microsoft.
https://aka.ms/fluentui-system-icons
MIT License
5.65k stars 498 forks source link

Getting error when Trying to use '@fluentui/react-native-icons' #621

Open cyberscorpion opened 11 months ago

cyberscorpion commented 11 months ago

How to use this library in react native?

I was trying to follow your documentation: https://github.com/microsoft/fluentui-system-icons/tree/main/packages/react-native-icons but it didn't work.

In our react native project we install '@fluentui/react-native-icons' using yarn add @fluentui/react-native-icons and it added "@fluentui/react-native-icons": "^2.0.208", in our package.json file.

Now when I am trying to import the icon in my component it is giving error.

import { AccessTime24Filled } from '@fluentui/react-native-icons';
<View>
    <AccessTime24Filled />
</View>

Getting error: image image

rohanprasadofficial commented 11 months ago

@tomi-msft @williamch-ms , wondering if we can get any work around here as we're planning the path to move away to our assets store and using this package. Thanks

nhunghustk64 commented 2 months ago

I also had the same problem. Have you fixed it yet?