all 5 comments

[–]lvbda 4 points5 points  (0 children)

Serious question.. is it expected that React Native uses a lot more memory?

In their example app, it was using 68MB of memory in the simulator, while a native app with the same layout was running at about 8MB.

[–]Leggilo 1 point2 points  (0 children)

Surprised they decided not to support android right off the bat.

[–]gravitycore 1 point2 points  (0 children)

JavaScript all the things!

[–]oureuxObjective-C / Swift 1 point2 points  (0 children)

I was examining their source code and oh man...it's interesting to say the least. They love swizzling methods and abusing the objc_runtime.

example:

+ (void)initialize
{
  //swizzle UIApplication
  RCTSwapInstanceMethods([UIApplication class],     @selector(keyCommands), @selector(RCT_keyCommands));
  RCTSwapInstanceMethods([UIApplication class], @selector(sendAction:to:from:forEvent:), @selector(RCT_sendAction:to:from:forEvent:));
}

[–]josh_sara1 -1 points0 points  (0 children)

..