Closed xzilja closed 6 years ago
It should work with react-native-workers:
import { Worker } from 'react-native-workers'
import workerize from 'workerize'
window.Worker = Worker
workerize( () => {
export function foo() {
return 1
}
})
Thank you, quickly tested this and seems to be working good.
Hi, wanted to check if there are any difficulties when using workerize with react native? There are solutions that achieve it i.e https://github.com/austinksmith/Hamsters.js But as always your api is much cleaner and minimal.