17
u/MIP_PL Jul 20 '22
I maintain an app with older codebase and whenever the owner talks about updating because dependabot is freaking out, I always manage to persuade him not to touch a single package just in case.
2
40
u/SuccessfulEntrance81 Jul 20 '22
Are we guys talking about same react native? The tooling can be an issue in cases you need to do very specific native-side staff for the first time or use outdated rn versions, but in general I don’t have such issues in years. Rn is a charm nowadays comparing to what we had back in the days.
Update: and I don’t talk about an expo, just bare react native
16
u/ffab00 Jul 21 '22
Recent examples: Could not add firebase because it required to use frameworks. And half of my packages didn’t compile this way
Adding react-native-google-signin and can’t match versions of gradle targetSdk, appcompat, and material library for my project to build (a few issues with no solutions online) - a day spent
4
2
1
u/Shaddix-be Jul 21 '22
Had the exact same thing earlier this week. I just downgraded to a version that I had working before... Kinda sad.
1
u/Socially-Awkward-Boy Nov 10 '23
Glad to see react-native-google-signin was already an issue to use a year ago
15
u/dont_press_charges Jul 20 '22
A dev with 5 years of experience with RN (OP) should be able to figure out env issues pretty quickly…
10
11
Jul 20 '22
Have gone back to native iOS / Android, writing things twice is more pleasant to me than fighting with tooling. Yeah short term it takes more time but long term productivity is more or less the same.
2
u/ffab00 Jul 20 '22
JEALOUS! Do you do both native? Any experience developing the same app natively on both platforms?
5
u/kbcool iOS & Android Jul 20 '22
But it's the same tooling for the most part.
You can't seriously say React Native is unique. These are developer problems. It's not all roses if you go elsewhere.
20
Jul 20 '22
Nope. Especially not when you use expo.
12
u/ffab00 Jul 20 '22
To come up with any serious app (bare, not expo) you'd have to learn ALL of iOS (Xcode, swift) and Android (grade, maven, manifests, kotlin, and other) quirks anyway PLUS a ton of extra unnecessary ones like Objective C, typescript, babel, metro, flipper, yarn.
It will be a constant struggle with version updates and build issues.
Your projects will have thousands of warnings, and will build about 50x longer than native projects, have slower non-native feeling UX. It always takes extra days figuring out build surprises just to release an app updates.Those around you will look at you, wondering why you spend days in front of a black screen with letters not achieving anything.
I feel like cross-platform development is a myth at this point.
Would love to be proven wrong24
Jul 20 '22
You’re wrong. You don’t need to use “managed” expo anymore. You can do most things without touching native code with expo. I’ve worked on a large mobile app using it recently.
3
3
Jul 20 '22
Managed was the way you’d have to develop in your RN app that had many limitations (no native modules). https://medium.com/@natesabrown/deciding-between-expo-managed-bare-workflows-1e69af847003
1
6
u/ForsakenMolasses4408 Jul 21 '22
I have now worked on three very large scale production apps, two of which do millions of dollars a year with hundreds of thousands of daily users on both platforms and I have never ever had to deal with any of that stuff, and neither have any of the devs I work with including the ~30 dev RN team at my current company. We don't have a single native dev and it has never been a problem. Never used expo in any of these projects.
That's on top of a pile of personal projects using both expo and bare workflows with a similar experience. Most time I have spent dealing with errors was adopting the new architecture early on.
Hell my reason for creating this account was to ask a question about native code because I have never had to do it in four years of RN.
I'm not sure what you're doing wrong but I can't help but feel the blame isn't quite all on RN here.
4
u/kch_l Jul 20 '22
I work on a fairly large app, it has shared code with a web app, we never touch native code, the rn upgrades can be a bit painful, but other than that all is good.
3
u/ErwinDurzo Jul 21 '22
I work in a pretty large rn app along with 20+ developers and 300k+ users, it has around 48 modules and I don’t even know how many screens, not counting a couple of flutter packages we’re interoping with and there are only around 2 or 3 people with a native background and deeper knowledge on the tools you listed. For personal projects there’s no way you should be running into these issues frequently unless you’re using a unmaintained libraries for every single functionality
3
u/AntennaApp Jul 21 '22
To come up with any serious app (bare, not expo) you’d have to learn ALL of iOS (Xcode, swift) and Android (grade, maven, manifests, kotlin, and other) quirks anyway PLUS a ton of extra unnecessary ones like Objective C, typescript, babel, metro, flipper, yarn.
HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA HAHAHAHAHHAHAAHAHHAAHAHHAAHAHAHHAAHHAHAHAHAAHHAAHAHAHAHAHHAHA
3
u/alexandr1us Jul 25 '22
You clearly don’t know what you are talking about and this comment proves that
3
Jul 20 '22
You can also create a very though workflow and make RN work well for a team. I’m not going to convince/prove you wrong though.
6
u/ffab00 Jul 20 '22
Maybe starting from scratch is easier these days. For a legacy bare workflow application as a solo dev, it's still a nightmare.
Do you have native android / iOS devs on the team? Are they enjoying it? Do they feel it would be easier to have 2 separate versions?
3
Jul 20 '22
Ask people at Coinbase or other companies that went to RN. There are many. Personally, I moved my CLI app to expo. It took a decent amount of work, but the QOL improvements were huge and payed off in weeks.
5
u/yarn_install Jul 20 '22
Guaranteed that companies like Coinbase have dedicated teams that do the dirty work of upgrading RN versions etc and native engineers that do native modules. I’m sure it’s great for the average engineer who can just focus on writing features. Small companies and single person projects don’t exactly have that luxury.
4
u/Paid-Not-Payed-Bot Jul 20 '22
huge and paid off in
FTFY.
Although payed exists (the reason why autocorrection didn't help you), it is only correct in:
Nautical context, when it means to paint a surface, or to cover with something like tar or resin in order to make it waterproof or corrosion-resistant. The deck is yet to be payed.
Payed out when letting strings, cables or ropes out, by slacking them. The rope is payed out! You can pull now.
Unfortunately, I was unable to find nautical or rope-related words in your comment.
Beep, boop, I'm a bot
1
2
u/Head_Anywhere_7475 Jul 21 '22
are there any resources out there that help RN devs learn about tooling, without getting bogged down by the native stuff, i literally don't understand even stackover flow responses when im trying to fix env things. how are yall doing it??
1
u/ffab00 Jul 21 '22
It's good idea! A general intro resource to xcode and it's build system (different step), gradle, and some explanation of android inner workings - what's android, jettifier, manifest, merging, activities, SDK, appcompat, play services, etc etc.
It would help react-native devs to feel like they understand what's happening)
6
u/Fair-Building4959 Jul 20 '22
Not really. I get that you ran into a frustrating issue and I think most RN devs have been there, but like with anything in programming once you learn to solve that problem you’ll know for next time. I honestly don’t get the whining. Use Flutter then I guess?
5
u/kbcool iOS & Android Jul 20 '22
Using Flutter isn't going to solve the whining. What they are complaining about is what every proper developer has to put up with, it's part of the job.
Note: I say proper because yes sure you can hack around in Excel or Pastebin or even write a simple app with Expo Go without a lot of that mess but you aren't going to get very far.
5
1
u/ffab00 Jul 20 '22
Just wish the cross-platform development would be further along in 2022.
And also, this should be talked about more, for the new devs considering RN, to warn they'll be stack overflowing more than developing for any serious app.
Also, I don't feel like I'm learning as I'm solving those problems by copy-pasting. Still gradle, and most of iOS and android specific tooling remains a mystery.
I guess because I want to use a cross-platform tool precisely for not to have to learn both platforms' internals.
Does flutter solve it?
5
u/Fair-Building4959 Jul 20 '22
I’m not trying to offend you, but this is just whining for whining’s sake. Every language and framework will be difficult, especially in the beginning and with your first few projects.
Expecting to be “warned that you’ll be using stack overflow a lot” is… I don’t know. Definitely don’t say this to a potential employer.
51
u/Quiet_Desperation_ Jul 20 '22
I have written exactly 3 production RN apps. I’ve written a dozen or so MVP’s in my spare time. Around the time this shit starts happening I always regret choosing RN. This sub and other places always say “That was an issue in 2020, it doesn’t happen anymore” or something along the lines of that. Bullshit. It happened every time. I either write mobile apps natively, in objective-c or kotlin, or I use Xamarin if I think it can handle the specifications.
17
u/terandle Jul 21 '22
Eh, I am massively happier/more productive now on RN/expo than previously Xamarin.Forms. I think there is a reason MS bulldozed that framework over and replaced it with MAUI. But still react's component/rendering model beats the pants out of XAML so dunno what MS is thinking there for MAUI.
5
u/Quiet_Desperation_ Jul 21 '22
That’s why I said if it fits the specifications. I haven’t written a forms app in a while. I usually just create 2 separate UI apps, reference the same service layer which references a singular repository layer. Not truly write once distribute everywhere, but I found it still easier and more controlled than RN. And to your point about MAUI, yeah I’m not sure either. Windows desktop frameworks were always decent, but I feel like everything XAML based has been pretty bad tbh. I wish they would have went the modern Razor/Blazor syntax for MAUI. I guess I’ll stick to electron or c++ front end frameworks like qt.
4
u/_reykjavik Jul 21 '22
Xamarin
I spent almost 2 years of my life developing XF apps. What an absolute nightmare. Putting rounded corners and shadow on input? Yeah, I'm gonna spend some time now creating a custom control. Hot reload wasn't available when I started so most changes required building the app and pushing it to a physical device to see the changes because the virtual devices just would not work properly. Xamarin and Xamarin Forms of course are two different products, but XF was supposed to be the way to go according to almost all X/XF developers.
Also, not a single company in my country is hiring Xamarin or XF developers because everyone is using Native, RN, or Flutter, so if you are trying to boost your job opportunities, Xamarin and XF are a terrible idea (in my country).
3
3
u/2this4u Jul 21 '22
It's worth checking out Flutter. Dart's really nice to use and there's a lot of flexibility, plus it compiles natively.
1
9
u/engnr Jul 21 '22
Your pie chart illustrates how the overheads dominate for small projects. As you scale up to bigger projects, the cost of those overheads will tend to diminish.
2
u/ffab00 Jul 20 '22
Prayer follows:
Dear Microsoft, just buy react native, and expo, and make it a paid product, put all of your devs on it, and embrace react to the moon. Build it into Visual Studio Code, and just have all the dev tools pre-installed, and make RN available for all platforms, for web, for windows, and Mac, for TVs and apple watches.
And let react-native see 1.0, and please(!) charge me a subscription for it! And buy all the top component packages, or sponsor their creators so they're always compatible with all updates. And will Windows phone see the renaissance! And make the App Store fees really low in it/
4
u/kch_l Jul 20 '22
Is this sarcasm?
2
u/ffab00 Jul 20 '22
Yes and no. Would you pay for react native that works on all platforms ? It already started on it once https://microsoft.github.io/react-native-windows/
5
2
Jul 20 '22
Microsoft is still betting on Xamarin.Forms, or now its sequel MAUI
-1
u/ffab00 Jul 20 '22
Oh no. I hope that’s not how they called it. When I google it tropical island comes up. That would kill my productivity
1
7
u/sekonx Jul 21 '22
This doesn't align my experience... Not for a fair few years.
I've been using RN since 2017, and have been contracting with it since 2019. I also tend to create build pipelines as part of my role, so you'd think I'd get the worst of it
12
u/johnlewisdesign Jul 21 '22
This sure sounds like a dev without much experience to me lol
5 years ago I could align with this
0
u/Slapbox Jul 21 '22
I just had to git bisect an issue that only appears in the built apps, which take over twenty minutes to build... TIL that's my fault.
1
u/kbcool iOS & Android Jul 21 '22
20 mins? Your fault for having an archaic computer. 2 mins from clean on an M1
1
u/Slapbox Jul 21 '22
Not having money for an overpriced computer is a lack of experience (and also your fault.)
I wonder how many stupid notions we can chain together...
1
21
u/kbcool iOS & Android Jul 20 '22
Have had a lot of those experiences but been doing this for almost five years also so most of them well in the past. Solving random issues definitely does not occupy much of my time anymore.
A lot of the React Native stigma that is around is from the early days of manual linking and just generally being less stable.
Different world today.
2
u/mybirdblue99 Expo Jul 20 '22
Tooling issues have been a slight issue for me with expo but I’ve not really had any show stoppers. added bonus of react native is that you can also build for web at the same time which a lot of my clients expect
1
u/ffab00 Jul 20 '22
Yes, using react-native-web as well, surprisingly it has the least issues, although only about 30% of popular packages support it.
It's easy enough to add platform-specific code though
2
u/iumashmallow Jul 20 '22
That's why I love flutter
1
u/ffab00 Jul 20 '22
Please tell more! How easy is it to learn after react native? How long your builds are? And how complex are your apps?
Can you mix it with native swift code?
7
u/Darksteel213 Jul 20 '22
I jumped from learning a tiny bit of React and React Native, straight into Flutter. Honestly a little bit of a hill because I was still a novice programmer but I was able to pick it up and build some things. It has a similar reactive state structure as React where you call a set state method to update the UI, plus all the nice state management libraries. Can't speak to build times, but it can handle complex apps well, but it's still being taken up by companies. Google has dogfooded it with certain apps such as Google Pay. It can be mixed with native code.
I suggest just trying it out and seeing for yourself, if after 5 years you're still dealing with issues like that, look at other options. Be warned, Flutter has its own problems, but they may be preferable to RN. These are things such as having to do manual shader compiler steps before compiling for iOS due to issues with Metal that are being fixed atm. Also the ecosystem is still growing, but you can probably find everything you need.
Me personally, I'm using CapacitorJS atm with Rust wasm because it's fun to tinker - nothing serious. But html and css is so productive with Tailwindcss.
Good luck!
Edit: I forgot to mention, if tooling is giving you a headache the most, Flutter probably has the best tooling and DX of any framework I've ever touched. Blesses the developer.
8
u/yarn_install Jul 20 '22
Lol, React Native engineers realizing they need to understand how the underlying platforms work. Although it’s true, when things break in RN native side it’s 10x harder to debug than with just a plain native app.
2
u/Head_Anywhere_7475 Jul 21 '22
lmao why is this me, im just tryna build things and have been if ignoring the platform side of things for as long as i could. now im screwed and contemplating switching to web
2
u/blwinters Jul 21 '22
This, 100%. React web devs have an advantage in that they are accustomed to flexbox, hooks, redux, etc. But RN is not just a code sandbox, it all has to line up with a native app that is built properly. So there is significantly more surface area to understand, but the benefits outweigh the costs as long as you keep up with your technical debt and don’t shy away from investigating and fully understanding these things. Of course, this is easier to do if you have a mid-size team with varied experience.
3
u/polmeeee Jul 21 '22 edited Jul 21 '22
Tell me about it lolol. 2019 was the AndroidX update mess. Now is the new arch kerfuffle. Coupled with all the individually maintained packages that has dependencies upon dependencies the pien is real. How bout the bandaid fixes that one must apply to their apps so that it doesn't crash on certain models on production?
Still though nothing beats React Native. Been using it for 4 years and I've built some amazing apps with it, much of the credit goes to FOSS without which I would have to do everything from scratch.
3
2
2
2
u/Link_GR Jul 21 '22
Build issues are my absolute least favorite thing about what I do. It's such a waste of time, and half the time it's something unique to you that oftentimes gets magically solved on its own. It barely qualifies as dev work.
2
u/Delphicon Jul 21 '22
For what it’s worth there is a lot of this when managing native projects as well. It’s just the cost of app development. Even regular web development can have a lot of overhead.
Expo exists to solve this problem by putting it all in a blackbox. That’s the best you can reasonably get. If you want to do things manually, the native projects side of things is part of that.
React Native with manual configuration is something for a team of developers to do where the overhead is offset by the number of devs. It’s not a tool optimized for one person to make an app.
2
u/MacsBicycle Jul 21 '22
Oh thank god. I thought I was just a retard those years I worked with react native
3
3
u/0xDANI3L Jul 20 '22
I think i'm going to rethink my next project after seeing this lol
5
u/Kiiidx Jul 21 '22
Just use expo bro and you wont run into this stuff.
2
u/YL-CSL Jul 21 '22
You sure will, if your app goes beyond the simple web app on native
3
u/Kiiidx Jul 21 '22
What are you even talking about? I’ve built a few production ready expo apps for companies and not run into any issues related to xcode, android studio, podfile, updating versions, 20 minute(???) builds, patching packages(since they are built in mostly), yarn install errors, gradle issues, ruby issues on an m1 mac, the list goes on. Rarely if ever deal with any of the problems listed in the meme. Must suck being dumb enough to make the easiest app development framework work against you and not for you…
3
2
u/Bpofficial Jul 21 '22
Yes. This was my life for over a year and I have very much enjoyed my break from app development with RN
2
u/luctus_lupus Jul 20 '22
Couldn't disagree more, sure the old rn versions without expo had issues but newer expo SDKs are amazing to work with. EAS build will cover any required native code too so no reason to leave expo workflow
2
u/Badaluka Jul 21 '22
I agree. This person is talking about bare react native from a year ago or more.
2
1
u/NastroAzzurro Jul 21 '22
If you install a package for every single bit of functionality in your app you’ll get many issues. It’s important to stay conservative with packages installed.
1
u/kbcool iOS & Android Jul 21 '22
Installing a package for every little thing you need sure is bad practise.
1
1
1
u/JeezLooeeez Jul 21 '22
Yeah, I can definitely relate. I love React Native when it's working well. When things go wrong, which they often do, I find myself wondering if I'd made a horrible mistake falling for a false promise. But then I figure it out, and go back to being somewhat happy again. My main reason for using React Native is for the time-savings. I do feel that the quality of my app(s) suffers a bit compared to what I could do if I'd just write two native apps. But I also remember the hell of trying to develop pure iOS apps, with XCode's piggishnesh, and waiting for it to re-compile and then logging back in, navigating back to the screen I was on whenever I simply wanted to change a font or a color. So when it's working as expected, the developer experience in React Native is amazing. As long as the app consists of pretty basic stuff.
If pure native development offered that same hot-reload feature I'd ditch React Native for sure.
1
1
u/Cold-CatAF Jul 21 '22
I have this experience during my first internship with old react native version with manual linking and native bridging. After year I just breeze all of it. Just need experience tbh.
1
u/whatevernamedontcare Jul 21 '22
The only thing great about React is it's ideology "You can do everything right and still fail". It also gets you in touch with your emotions. Mostly anger, frustration and tears.
1
u/brsmr123 Jul 21 '22
This is how I was when I started developing with RN. I used to google every single time when I see a red error screen, but honestly in the last 2 years or so, I almost never had any issues that I beat my against the wall for.
I started working with Expo because it was the thing for beginners, easy to start up and learn, don't deal with linking etc. People were saying start with Expo, then you can switch to bare once you learn basics, but honestly, I don't see any reason to switch to bare right now. Expo is so powerful in my opinion.
And if you genuinely relate your dev experience to this chart, I am 100% sure you are doing things very very wrong.
1
1
1
u/Clarkj99 Jul 21 '22
You’re not wrong. But since I don’t have the bandwidth to learn to code negatively on all platforms, React Native will have to do.
1
u/chiviet234 Jul 21 '22
moved back to web after 3 years in RN, getting paid more and having an absolute blast
1
u/kbcool iOS & Android Jul 21 '22
You were underselling yourself. RN devs make about 30-50% more on average than web devs.
1
Jul 21 '22
If this makes you feel better, similar things happened to me 6 years ago with Ionic 1
Then I Moved to react native, experienced same frustration but different error codes.
Moved to quasar framework bc vue and capacitor (f*ck cordova) And I still have those kinds of errors
1
u/Slapbox Jul 21 '22
I keep waiting for it not to be the case, but it remains the case after all these years.
1
1
u/stealthypic Jul 21 '22
This put me off RN. I moved back to web because I got tired of all this shit.
1
1
u/AgileChaos Jul 20 '22
Yes. Even with expo.
0
u/implicatureSquanch Jul 21 '22
You should expect more issues with Expo over time, especially in an app that's not super simple. It's an additional layer of abstraction over RN
1
u/tahola Jul 20 '22
Yes I said it many time here, RN is a nightmare when things get serious and no expo doesn't help, it can even make it worst in many cases.
-1
0
Jul 21 '22
Yeaaa! Same happened to me! You build an app, you take two weeks off, you come back and the app throws errors which you cannot explain. The development experience in RN is currently very bad, like OP described 90% of the time will be spent on debugging issues and incompatibilities, while it should be used to focus on the business logic. I am a big fan of React, but RN is not there yet, maybe it will in the future.
0
0
Jul 21 '22
[deleted]
-1
u/ffab00 Jul 21 '22
Actually as an indie dev, with a profitable project, I chose it exactly because I thought I could easily make a cross-platform app with some iOS and Android specific code and handle it all by myself.
- Adding google/apple auth took me more than a week with all the issues
- Adding firebase was just impossible
- Every update an unproportional amount of time is spent on small issues
Is it worth it for your project?
For companies RN might be the solution, if it's Expo all-the-way (make sure you check ahead Expo will handle all your needs, years into the future)! If you are funded, get a separate iOS and Android dev.
For indie devs: If your app is complex, just release an iOS-only app and make a killing. iPhone users pay more anyway! If you will need a job in the future, you'll get better pay as a Swift dev. And you'll save yourself some years of your lifetime in build times.
10
u/kbcool iOS & Android Jul 21 '22
I'm an indie and paid RN developer. I make better coin than pure native devs do. It's generally paid a premium.
As an indie Dev RN has literally made it possible to build a complex app with twice the user base and about the same time if not less than a single native app.
The revenue is split pretty evenly across platforms. If I had only chosen one platform it wouldn't have been worth my time. It's basically the same for many indie devs and companies. RN makes dreams happen.
I get that you're finding it tough. I don't mean to be rude but you are going to find it just as tough if you go elsewhere if you are struggling so much with these concepts.
I mean adding firebase and auth packages is no harder for React Native than native as a simple example.
0
Jul 21 '22
[deleted]
-2
u/ffab00 Jul 21 '22
wants to normalise mobile developers pay range then they better try to make a true cross platform tool. Hope that makes sense.
100%: better pay for eating cactuses!
1
73
u/ffab00 Jul 20 '22
Context:
react-native dev with 5+yrs of experience wasting 2 days just trying to ./gradle assembleRelease after adding a couple of packages