2

Do you think an app like Netflix could be built with react native and still give the same performance?

Comments
  • 4
    Netflix is a glorified video player tho, so why not ?
  • 2
    Nobody is thinking about Netflix. You’re the one. Rethink your thinking bro 😊
  • 2
    @Biggy I just thought of "deez nutflix". Did not have that on my bingo card today.
  • 2
    By very definition, nothing that doesn't run on the native code (and no, react native isn't native code), is bound to do worse, unless it's AoT, which javashit isn't, if only for all the intermediate steps.
  • 2
    @Tounai

    You can't have a decent video player without direct manipulation of the GPU.

    Dunno if reacrapt can do that (don't think so). In any case, they probably are adding just another onion wrapper to GLSurface, exoplayer or whatever.
  • 2
    @CoreFusionX to be fair, clown languages like JS (language of React Native) can still be used for stuff like netflix without a noticeable performance impact because they access the GPU via an SDK which is written in a low level language.
  • 0
    @CoreFusionX There's webgl and webgpu, and RN uses a custom runtime with native bindings.
  • 1
    I'd say the performance of the video player itself will depend more on the robustness of the media processing pipeline and netcode, but the app UI itself mostly depends on the level of abstraction, so the JS runtime would probably cause more performance problems there.
  • 0
    you really wouldn't write the video processing code in JS though, that would have to be Webassembly and webgl, or native code, in which case you're probably better off with a native app.
  • 1
    @CoreFusionX the default way of watching Netflix is on a web bowser. I assume that you can use the almost-same player on React native.
  • 1
    no chance in hell, unless everything left from React Native there is but a shell for native code. Been there, done that.
  • 2
    @Demolishun but did you have 'marburg fever boogaloo' on your bingo card?
  • 1
    @Lensflare "because they access the GPU via an SDK which is written in a low level language.

    "

    'deep magic' if you will.
Add Comment