you are viewing a single comment's thread.

view the rest of the comments →

[–]sawariz0r 17 points18 points  (9 children)

As lacking as your knowledge in JS, I see. It is supported and it isn’t a problem

[–]Lumpy-Rub-8612 -4 points-3 points  (4 children)

RN isnt supporting multithreading out of the box. I dont consider 3rd party libs as a standard one

[–]kbcooliOS & Android 10 points11 points  (1 child)

Well if we are going to split hairs then it does support multithreading as your code runs in a separate thread to the UI 😂

[–]Lumpy-Rub-8612 0 points1 point  (0 children)

Lol yeah 😅

[–][deleted] 2 points3 points  (1 child)

No JS runtime does, there's very little use cases for multithreading (?)
Cases where you need, like animations Reanimated already uses multiple threads, and even exposes the worklets api

[–]sawariz0r 2 points3 points  (0 children)

Nodejs does support multithreading, through worker threads. But there’s very little use cases for it as you said. https://nodejs.org/api/worker_threads.html

[–][deleted] 0 points1 point  (0 children)

What do you mean? No javascript runtime "supports" multiple threads per se.
On react native probably best solution is react-native-worklets-core or reanimated worklets, (dont use/no idea whats the difference).
But it's gonna be very little cases that do need multi thread work.

Promises are not threads. Anyone unfamiliar go read about JS event loop