Comments (9)
We need something like
react-native-threads
orreact-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.
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.
@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.
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.
@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.
@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.
@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)
- Unable to run react native app after ejecting from expo: error: constructor DevSettingsModule in class DevSettingsModule cannot be applied to given types; new DevSettingsModule(catalystApplicationContext, reactInstanceManager.getDevSupportManager())
- Main thread not receiving message HOT 2
- Multiple threads PROD environment
- Understanding HOT 1
- I don't think it works on 0.63 iOS HOT 3
- Error: Unable to resolve module `./worker.thread` from ``: HOT 5
- Invariant Violation: Native module cannot be null. IOS
- Worker thread has much slower performance HOT 4
- Using main bundle instead of thread bundle in iOS release mode (react-native 0.68.1) HOT 2
- Release mode build phase Xcode HOT 1
- [Delete me]
- Can't get message in thread.js on Android HOT 2
- Support new architecture
- Android App Crash
- ThreadManager.m uses `jsBundleURLForBundleRoot:fallbackResource`, which no longer exists in RN 68 HOT 2
- -
- Unable to connect to thread in ios release mode HOT 1
- [EXPO] Its possibility ability on expo?
- RN 69 is no longer auto-linking this module on iOS due to pod issues HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-threads.