React Native Web Issue With React Native Vector Icons In Storybook
I created a project using react native web and I got react native icons working for web and mobile except on storybook. I'm not sure how to tell storybooks webpack config to load F
Solution 1:
For anyone having problems with this I needed to be specific on which file to be included for the url loader.
This change fixed the error:
{
test: /\.ttf$/,
loader: 'url-loader', // or directly file-loaderinclude: path.resolve(
__dirname,
'../node_modules/react-native-vector-icons/FontAwesome5.js',
),
},
I also moved the font awesome script into the preview.js file
Post a Comment for "React Native Web Issue With React Native Vector Icons In Storybook"