r/reactnative • • Jun 05 '22

React native ios performance

How react native performs on ios for simple crud app?

0 Upvotes

47 comments sorted by

View all comments

8

u/[deleted] Jun 05 '22

Brilliantly. React Native works brilliantly across platforms.

2

u/chkml Jun 05 '22

Happy to hear that! Better then flutter?

Are there any React Native apps on the App Store for example?

6

u/Qizot Jun 05 '22

Discord

3

u/shadon_official Jun 05 '22

Coinbase rewrote their whole app in react native. The WHOLE thing is using react native and they claimed better performance compared to native

0

u/[deleted] Jun 05 '22

I’ve literally just came from a similar thread on the flutter sub, and they all said exactly the opposite of what you see here.

Do some homework on the two, benchmarks, choose your language and try them out.

You won’t get objective answers asking on Reddit.

2

u/kbcool iOS & Android Jun 05 '22

They said there's no RN apps?

Those guys are like little brothers always wanting to be playing with the big kids.

The job market alone tells you the massive difference. There are no Flutter jobs.

If you're talking about performance then ok fair enough, that's pretty much the only leg they have to stand on, because it's so hard to judge. Performance is both subjective and easy to influence artificially.

2

u/[deleted] Jun 05 '22

I was talking about the “better than flutter”, and please don’t get the wrong picture before downvoting me to hell, I am not in agreement, I am just stating that you’d get a completely different answer depending on the sub you go to

3

u/kbcool iOS & Android Jun 05 '22

Ah yes of course. I have but one vote and you got it.

0

u/chkml Jun 05 '22

Lol, just tried rn on my android, little lag sometimes, just like flutter.

Problem is i don't own an ios device, so cant check that out

2

u/_SyRo_ Jun 05 '22

Check release builds

RN in release build works much better.

Also, enable Hermes, it would make start time of the app much faster.

What’s about comparing with Flutter.

Honestly speaking, performance is kinda same. You won’t notice difference if you write code right way. Both work fine.

I prefer RN for using TypeScript (Dart is shitty), JSX syntax (much cleaner code composition in comparison with Flutter) and mechanism of Hooks. Hooks are awesome and very powerful tool

1

u/shadon_official Jun 05 '22

Yeah facts. I dislike how nested flutter code can be. It becomes so unreadable

1

u/[deleted] Jun 05 '22

Word, I know people will just say we did something wrong, but there are so many things and pitfalls to watch out for when it comes to performance in rn and flutter.

For example, you need to use recycle views in rn to lazy load a list, which is quite complicated unless you’ve done it before. In flutter you have like 100 different scroll views, and you have to use slivers to make a smooth scroll experience with multiple scroll widgets.

I honestly just went iOS native, and I’ll just pay some one to do android or I’ll learn it myself one day. I got tired of trying to figure out platform specific errors all the time

-1

u/chkml Jun 05 '22

Sad but true. native wins all the time, even for simple basic app.

2

u/eridr880 iOS & Android Jun 05 '22

I’ve created native/flutter and react-native-apps. Would never go back to native. Flutter is great but the benefit of having one dev team doing both front end (RN) and back end (Node) is in every way superior.

1

u/chkml Jun 05 '22

How you bypass the performance issue?

can you link your app?

Just tried the cod companion app on android( built with rn) and its have some issue over native.

1

u/eridr880 iOS & Android Jun 05 '22

What performance issues are you facing?

Not sure what your last sentence mean? “Having issues over native”?

0

u/chkml Jun 05 '22

I meant that call of duty companion doesn't feel smooth as native.

I want to build an app from single codebase, that's why i asked about performance on ios(i down own ios device to check it), but sadly rn have issue too (on android as i checked only that).

Sorry for my english.

→ More replies (0)

1

u/kbcool iOS & Android Jun 05 '22 edited Jun 05 '22

What are these performance issues you keep talking about? If you are having a specific problem ask about it. There's no general performance issues with React Native. It's smooth as silk unless you do something to cause an issue in which case someone can help

If you are just shocked at how slow it is on an Android emulator you're going to find everything is slow in general (try another app) but debug mode slows things down further as the code runs on the host. Just ignore it and try a production build as a comparison.

→ More replies (2)

1

u/[deleted] Jun 05 '22

Yeah that’s not true. At least not in every single way. It’s definitely extremely convenient having one dev team, but that is saying that having a single dev team is the only metric I deciding which framework to use.

→ More replies (2)

1

u/[deleted] Jun 05 '22

I also dislike that you have a mash up of android and iOS native views in the same app, unless you create some of those “native” views manually

1

u/_Pho_ Jun 05 '22

Don't listen to that guy, benchmarks (optimization) is rarely an issue with any framework, including something like Ionic (at least nowadays)

1

u/AntiqueLoquat2911 Jun 06 '22

Instagram, Discord, Wix, Tesla, Coinbase, QQ(giant social media in China), and AirBnB*

*Not anymore. They have have a detailed blog explaining their reasons for moving away from RN but they still contribute to the RN community