12

Bun performance are great compared with Nodejs.

It allows to run ReactJs app. Is it possible to run also a react native app with Bun js runtime?

mtoninelli
  • 686
  • 1
  • 6
  • 21

1 Answers1

3

Just install bun and run bun run start assuming you have start script in package.json pointing to react-native start

But I can't see the benefit of running react native over bun as bun will not be compiled into native (run on device).

If you're looking for better performance running your jsbundle just use Hermes

Mohamed Atef
  • 196
  • 1
  • 2
  • 12
  • 2
    FYI performance is usually _worse_ with Hermes. The only thing Hermes improves is startup time. Other than that Hermes is [slower and less efficient](https://github.com/Kudo/react-native-js-benchmark) and is missing lots of features. It even does dangerous stuff like treating all `let` and `const` as `var` which _will_ cause subtle bugs and memory leaks if you don't transpile everything to var safely first. IMO it's not production ready despite Facebook declaring it the new default runtime for RN. – imagio Sep 22 '22 at 16:15