Giter Site home page Giter Site logo

Comments (9)

gaodeng avatar gaodeng commented on June 27, 2024 7

Hi @austinksmith

We need something like react-native-threads or react-native-hamsters, but cant find anything that works on > 0.70 with Expo.

Did you, by any chance, had the time to look a bit into it?

We're willing to pledge a 2k$ bounty to solve this issue in the open-source ecosystem, if that helps.

That said, we're on tight schedule, and cant wait very long or else we'll have to do it ourselves (by "long", I mean that we'll start investigating around february). We just think it would be a shame to do that closed-source.

Would it be something that is interesting to you ? (or anyone reading this, for that matter)

Hi @oguimbal
Just prepped the PR and a demo for testing! Check them out when you can. 😊

PR: #156
Demo: https://github.com/gaodeng/react-native-threads-demo

from react-native-threads.

oguimbal avatar oguimbal commented on June 27, 2024 1

Hi @austinksmith

We need something like react-native-threads or react-native-hamsters, but cant find anything that works on > 0.70 with Expo.

Did you, by any chance, had the time to look a bit into it?

We're willing to pledge a 2k$ bounty to solve this issue in the open-source ecosystem, if that helps.

That said, we're on tight schedule, and cant wait very long or else we'll have to do it ourselves (by "long", I mean that we'll start investigating around february). We just think it would be a shame to do that closed-source.

Would it be something that is interesting to you ? (or anyone reading this, for that matter)

from react-native-threads.

austinksmith avatar austinksmith commented on June 27, 2024 1

@oguimbal While I'd love to help this is a big undertaking, facebook stripped out all the java files that these libraries both rely on. Without this java functionality we can't make it work, and recreating all the functionality of the old java files that used to be bundled with react native would be a major amount of work. I might be able to provide support for 0.70 but i couldn't do anything newer than that.

from react-native-threads.

gaodeng avatar gaodeng commented on June 27, 2024 1

Hi @oguimbal,

I've come across the bounty offer for addressing the multi-threading issue in React Native >0.70 with Expo, and I'm interested in contributing to a solution. With the sponsorship you've proposed, I believe I can offer valuable assistance in this endeavor.

If you're still looking for support on this project, please feel free to reach out to me at [email protected] so we can discuss the details further.

from react-native-threads.

austinksmith avatar austinksmith commented on June 27, 2024

@ThalesBMC the problem is that facebook removed some of the java class files that were previously included in react native, the only way to fix this is a complete rewrite, Ive run into the same problem with my library which was a fork of this one, https://github.com/austinksmith/react-native-hamsters I managed to fix some of the issues with this react-native-threads library but supporting versions higher than 0.6.9 seems to be very difficult

from react-native-threads.

devsticks avatar devsticks commented on June 27, 2024

@austinksmith any updates perhaps? I'm working on a new app, so I have some flexibility with versioning and that, but I've really battled to find an up-to-date way to run processor-heavy async tasks away from the main thread (a TFLite model in my case). Would appreciate any help you can offer!

from react-native-threads.

austinksmith avatar austinksmith commented on June 27, 2024

@devsticks I would recommend using my library Hamsters.js ( https://www.hamsters.io ) and using my react-native-hamsters package, as long as you use react native 0.69 or older it will work and you can follow my api and do some really cool stuff like put a function on its own thread or split a for loop across multiple threads just by changing 1 parameter. Eventually I'll try to tackle support for version 0.70 and newer but I took a look at the latest reactnative and they've completely removed ALL of the java files that this package and my package rely on so its going to take sometime to figure it all out. In the meantime you can use hamsters.js with react-native-hamsters and do parallel processing / multithreading without having to worry about things like thread communication and stuff.

from react-native-threads.

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.