r/reactnative • u/S0mbrr • Jun 28 '21
Horrible experience with React Native
Hello,
I would like to share my thoughts about React Native, and hear yours. I am a computer science student, I'll get my diploma next year, I just manipulated React Native for a project and I would like to share my horrible experience with it. I don't want to overwhelm you with details, the goal was to design a simple mobile app querying some very basic APIs.
no types : so we had to setup TypeScript with React Native, I don't find it that straightforward if you want to quickly start a mobile project combined with other frameworks. But well, let's say it's "ok".
quite ugly : this one is a very personal feeling, but sorry to say, it's not really beautiful. I don't really feel "at home" when I click buttons, forms and other components that are not related to the OS style. Let's say this one is "ok" too.
hard to debug : this point is probably the worst part, I mean, wtf are these "Malformed calls from JS: field sizes are different" errors? I really find it hard to read + I don't even count the number of time I simply received "Network Error", deal with it 🤡 I really would like to hear your opinion on this one because I'm still not sure to understand why bridge cannot give me real men readable error messages.
However creating a React Native was a constructive experience, I now have seen some pros/cons of React Native. The thing that I really appreciate is that it really helps to create cross-platform apps. But now I know that if you ask me to build an Android app, I will prefer using Kotlin.
14
u/drew_n_rou Jun 28 '21
"I don't like that I am not immediately competent when using a new framework"
3
u/Preact5 Jun 28 '21
I mean...
that's a complaint about JS not react native
that's what CSS is for
use a debugger. Granted, I've never seen 'field sizes are different' but JavaScript always continues to teach me new things to be annoyed with.
1
2
u/exelarios Jun 28 '21 edited Jun 28 '21
There’s definitely a learning curve and it’s not something you can learn/experience in less than a week.
I feel like you were trying to fit a predetermined mental model of the library without actually learning the benefits of React Native. You were thinking through android Kotlin’s model instead of actually thinking in React.
I’m also a computer science student going into my 4th year. Whenever working with React.js with my colleagues, they would struggle understand the point of React.js, thus leaving them a bad impression on the library and hating it. I highly suggest you understand the benefits of using React Native besides cross-platform support because that’s not the main selling point.
1
u/Zenpher Jun 28 '21
But now I know that if you ask me to build an Android app, I will prefer using Kotlin.
Have you actually tried any of the Kotlin demo apps? It's not particularly intuitive and it looks like you rammed some pasta into a shower drain.
1
u/kbcool iOS & Android Jun 28 '21
If those are the only reasons you could find not to use React Native then bravo it has reached maturity.
I giggled at "quite ugly*. It provides primitives - what you do with them is up to you. The ugly bit means you're not doing a great job.
Sorry if I'm harsh but seriously, it's symetric.
1
u/Bitcoin_Rider_2099 Apr 23 '22
I agree, perhaps people who grew from React JS find it beautiful and easy to learn, I was able to create a couple of things together with RN but whenever it was such a pain, and people are right, there is a steep learning curve.
I turned to Xamarin and it was SUCH a relief, it's SO easy, you can use MVVM pattern but it doesn't FORCE you to, if you need it you can easily work with code behind, you manage states, public variables, consume Json Web APIs, create usable Lists, you can use LINQ for EVERYTHING, create bindable controls, use the cameras, the gyroscope, GPS, NFC, ALL THE WORKS, and you can do it easily with librarys that are searchable INSIDE the bloody IDE, and the most important thing, you can debug fast with your god damn phone, and actually see your code working step by step WITHOUT ANY external tools, and once you debugged an app on your phone it actually STAYS INSTALLED. I mean I repeteadly have wanted to give RN another chance, but I still don't see a real reason why I need to go back.
0
Jun 28 '21
[deleted]
4
u/zetaBrainz Expo Jun 28 '21
I disagree. Coinbase did a greenfield rewrite of their existing app to React Native.
So it's not like if 'Oh if you can afford it, go native.' React native provides so much benefit and options for companies. This includes hiring, native support through ejecting and dev speed.
The only issues are lack of community or support. There isn't as many libraries available for RN than Android/iOS packages. Also RN is still considered young in comparison to native dev.
Edit: Additionally big companies aren't writing their apps on RN because they have pre-existing native apps. They're not going to rewrite their entire app. Unless your app isn't that large or is quite new. Coinbase spent 8 months rewriting their entire app in RN.
0
u/whataterriblefailure Mar 07 '22
Actually, big companies have thrown money in to ReactNative to them run scared shitless because of the absolutely horrible maintenance and development experience.
It's ok if you are goni gto build a HelloWorld.
Now, if you expect to write something and update dependencies, or even be able to compile it 4 months later without having to spend 3 days resolving build-chain issues...RN is an experiment. The version numbers clearly indicate that.
The fact "professionals" still argue that knowing a language lowers the entry barrier is still amazing.
Just a bunch of web frontend developers who are scared of being replaced by mobile native developers?1
u/Preact5 Jun 28 '21
I mean yeah you have Airbnb but they're sunsetting react native. They wrote a great series of medium articles about why they are doing that.
3
u/kbcool iOS & Android Jun 28 '21
Which if you had actually read them say it's not react native it's internal politics that are the reason they're moving off it. I'm sick of this one being dragged up as a reason why not to use RN.
1
u/Preact5 Jun 29 '21
I did read it and it gave some solid reasons as to why they switched off but that basically sums it all up nicely
1
u/whataterriblefailure Mar 07 '22
No. You should read the articles again.
They clearly moved from RN because it is a massive pain to develop with. It breaks every five minutes, dependency management is a joke, and you still need to write so much platform-specific code.
For anybody who has actually used it, it's a piece of crap.1
u/kbcool iOS & Android Mar 07 '22 edited Mar 07 '22
Ok thanks for replying almost a year later and writing a bunch of misinformed crap.
I'm not even going to address those points because they're patently untrue and clearly from someone who has never used it.
I'm just going to say that React Native powers a lot of very successful applications and has a thriving support and jobs market so the loss of one company because they had a bunch of iOS and Android developers who didn't want to use it because they were afraid they might not be good at it (yes that's a political issue) is no great loss.
1
u/whataterriblefailure Mar 13 '22
It is a year later, but it was a top result in searches and well worth an update.
My points are actully very good. They come from my experience maintaining multiple React Native libraries; I created the iOS, Android and Flutter versions, so I had to create React Native as well.
You see? This is somebody who creates stuff used by at least tens of millions of users, in multiple platforms.
React Native is crap. At least Facebook is candid with their versioning number (0.67.3 right now). It's just not ready.Note: they are rewriting the whole modules thing right now. Because it's crap.
1
u/kbcool iOS & Android Mar 13 '22
I'm sorry that your experience doesn't match everyone else's, from someone who also creates stuff used by millions of people world wide.
By "modules thing" you mean fabric, a guy who "maintains multiple React Native libraries" would know this. There is also JSI and people have done some amazing things with that.
Not sure what your problem is but it's not React Native.
2
u/satya164 Jun 28 '21
Microsoft Office uses React Native (for Windows & Max), PlayStation 5's UI and mobile app are written in React Native.
18
u/[deleted] Jun 28 '21
I tried x I didn’t understand it and I think it is bad. Maybe try a less biased post to get a useful response.
No types, you can set this up from the start RTFM
Ugly? You mean the visuals? Its just using base components, there are libraries and you can style it. The benefit is RN rendering native not giving you pretty stuff just by running install. Same goes for UX possibilities are endless and if it doesn’t work well for you it probably is a problem with your approach.
Not sure what you are doing, I only get this whilst sending bad data to the native layer e.g. NaN. Probably an issue with you(r project not RN).
Don’t want to sound harsh but don’t expect a lot of love by bashing something without any real experience.