Giter Site home page Giter Site logo

How to optimize? about react-native-eva-icons HOT 4 CLOSED

akveo avatar akveo commented on May 18, 2024 2
How to optimize?

from react-native-eva-icons.

Comments (4)

gianpaj avatar gianpaj commented on May 18, 2024

Same here. Is there a way to use a babel plugin like what they do with antd?
https://github.com/ant-design/babel-plugin-import

from react-native-eva-icons.

artyorsh avatar artyorsh commented on May 18, 2024

@gianpaj am I right that moving to direct imports should solve this? Because the same approach is used in the plugin you recommend
https://github.com/artyorsh/react-native-eva-icons#usage

from react-native-eva-icons.

gianpaj avatar gianpaj commented on May 18, 2024

That should work, thanks. But I'm using a package and itself uses RN-eva-icons (react-native-ui-kitten)

And for some reason, I believe all the Icons are bundled
https://github.com/akveo/react-native-ui-kitten/blob/master/src/eva-icons/index.ts

from react-native-eva-icons.

artyorsh avatar artyorsh commented on May 18, 2024

@gianpaj Then I guess this is not the issue for this library.

But in case of using @ui-kitten/eva-icons package, you might want to follow this guide and write your own icon package that reduces using proxies (like it is currently implemented) in favor of direct imports.

See 3rd party Icon packages section.

from react-native-eva-icons.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.