Giter Club home page Giter Club logo

Comments (4)

aliklev avatar aliklev commented on April 28, 2024 22

Answer in the FAQ:
How do I add custom native code to my Exponent project?
http://docs.getexponent.com/versions/v11.0.0/introduction/faq.html

from expo.

brentvatne avatar brentvatne commented on April 28, 2024

We should try to move UI libraries like this away from native dependencies so they can be easily supported with Exponent. Native modules have two use cases right now:

  1. Expose an API that is not currently available to JS
  2. Do something that you can do in JS but more performantly

UI libraries will only include native code that falls under category 2, so the answer is to improve react-native such that it is not necessary to drop down to native code. This means improving animations to allow them to run on the main thread (coming along nicely!), improving the gesture system, etc.

In this particular case, I believe custom native code is used for the loading spinner effect. Once we add support for Animated.loop and make it possible to run looped animations on the main thread there will be no need for custom native code for this.

Until then, you can fork this library and change the implementation or just use plain React Native without Exponent (sorry :<), or wait until it's possible to partially eject from Exponent (described here).

from expo.

alexprice1 avatar alexprice1 commented on April 28, 2024

@brentvatne what about use case 1? This is a deal breaker for me

from expo.

brentvatne avatar brentvatne commented on April 28, 2024

https://docs.expo.io/versions/latest/guides/detach.html :)

from expo.

Related Issues (20)

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.