oblador / react-native-vector-icons

Customizable Icons for React Native with support for image source and full styling.
https://oblador.github.io/react-native-vector-icons/
MIT License
17.31k stars 2.12k forks source link

Integrating react-native-vector-icons in my my own library #1454

Closed Waseem6409 closed 11 months ago

Waseem6409 commented 1 year ago

Environment

OS: WIndow 10 Nodejs : latest react-native-vector-icons : latest

Description

Describe your issue in detail. Include screenshots if needed.

0

I am developing a react native library for which I need 2 libraries react-native-vector-icons and react-native-reanimated, I know when we need to use react-native-vector-icons we have to do a few steps for android and ios, I tried to do those but Gradle gave an error of being a library instead of an application, I saw many libraries not asking the user to set it up, instead they doing it in their own library, I have been trying to achieve it but failed in every attempt, I have studied their code too, I have done the same with no success, Can someone help me how can I do it, I built the library setup with create-react-native-library

Waseem6409 commented 1 year ago

@oblador @mlynch @alpha0010 @samuelpetroline @Ashoat

Please check it out and and help

alpha0010 commented 1 year ago

If I understand your configuration correctly, you will want to add react-native-vector-icons and react-native-reanimated to the project in the example/ folder. Your main library itself should not link against them.

alpha0010 commented 1 year ago

This type of question belongs on https://github.com/callstack/react-native-builder-bob , I think, since it is not relevant to react-native-vector-icons.