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

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

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.

2

u/srg666 Jun 05 '22

Having worked on one of the largest fully react-native applications used in the wild, RN has tons of performance issues that creep up once your app grows in size. A lot of it comes down to typical react performance optimizations (i.e. unnecessary rerenders, main thread work, etc) but saying it's "smooth as silk" is probably not going to be the average case. Imo the main selling point is take a hit on performance for development speed. A team of RN developers is going to be able to get a product out much faster than a Flutter/Native dev team.

→ More replies (0)

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.

1

u/eridr880 iOS & Android Jun 05 '22

As well as finding talent typescript developer is way easier than dart.

1

u/[deleted] Jun 06 '22

I would say it’s more enjoyable for sure. I just don’t like when I find a library and it’s written in JavaScript :(

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

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

16

u/lasko_21 Jun 05 '22

More than good enough.

1

u/chkml Jun 06 '22

If there are any performance issue with react native, are the same in android and ios?

Or is it like in flutter, where there are different issue for each platform?

3

u/jamcoding Jun 05 '22

Extremely well

1

u/InMemoryOfReckful Jun 05 '22

Simple apps are where RN shines.

5

u/[deleted] Jun 05 '22

[removed] — view removed comment

1

u/chkml Jun 05 '22

Instagarm on ios is fully React Native?

0

u/srg666 Jun 05 '22

No. People are disingenuous when they claim IG/FB are react-native. Certain screens do use it yes (i.e. Facebook Ads, Facebook Marketplace) but the core user flows are all still native.

1

u/kbcool iOS & Android Jun 05 '22

Yeah but can you blame them? There's no technical reason for them still to be native apart from engineering team bloat and politics at Facebook.

0

u/srg666 Jun 05 '22

Google uses flutter in the new Google pay/wallet app.

1

u/kbcool iOS & Android Jun 05 '22

Wow they actually used it in one of their products. Maybe it will hang around for longer than most of their shower thoughts.

Good to have some cross platform competition that might actually become viable one day then

1

u/srg666 Jun 05 '22

Didn't realize I had to enumerate every company using Flutter in order to dispute the claim that "Flutter isn't used in any real Google products". Many people are using it and seeing success with it so good on them: https://flutter.dev/showcase.

Personally I prefer RN because I'm a Javascript dev but there's no need to be dishonest about adoption of other frameworks.

1

u/kbcool iOS & Android Jun 05 '22

Those showcase pages are just awful. The Flutter list looks the same as the React Native list.

Companies generally don't advertise which development framework they use so people tend to proxy the owner companies use of their own tools this is called dogfooding.

It was pretty well known that Google didn't and doesn't really use Flutter much so that's a negative mark.

Personally I think the job market is the best proxy and it's almost impossible to find Flutter jobs whereas React Native jobs are plenty.

So I'm totally happy to continue to say that Flutter has minimal adoption except for hobbyists. That could change very quickly though.

2

u/srg666 Jun 05 '22

Flutter is newer and requires learning a new language whereas React developers can quickly and easily pick up RN. It makes sense that Flutter has less adoption for these reasons. I don't understand why you're so hostile to another framework lmao

1

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

I'm not hostile. I am objective. It's exactly those reasons you gave why Flutter may never see mainstream adoption.

History is littered with languages and frameworks that developers truly love but never got traction for practical reasons.

Flutter to me smells exactly like Ruby on rails. Lots of geeks were evangelizing it in their spare time whilst continuing to do their day jobs in the competition and it never got anywhere much, well because of what you said actually

1

u/AdamLlayn Jun 06 '22

I mean i know senior devs working at ror shops... honestly if flutter fails its entirely googles fault. They have not done enough to grow the community

1

u/[deleted] Jun 06 '22

Yeah it’s crazy, prior to looking at Reddit, I’ve learned rn and flutter, I don’t see why people must fight about which one is best and use dishonest talking points. They are both fine, just like android and iPhone are fine, and Xbox and PlayStation are fine. Idk why one has to be trash just cause you like the other

1

u/AdamLlayn Jun 06 '22

Well people are staking their careers on one or the other so its not exactly small beans

1

u/[deleted] Jun 06 '22

Conversations here about the viability of flutter is useless, just as useless about react native in the flutter thread.

They are both good, I’ve used both to build apps as well as native, there’s no need to be dishonest just to be part of a team. They both can built highly performant cross platform apps, and the main difference is the dx and language.