5 ms·
Don't know last time I tried React Native and wanted to use some cool feature of iOS. I either had to write my own RN plugin in Swift/ObjC or wait for someone e
by wdb 7y ago
Don't know last time I tried React Native and wanted to use some cool feature of iOS. I either had to write my own RN plugin in Swift/ObjC or wait for someone else to do it.
- npo9 7y agoYou say that like writing plugins is hard or undesirable.
- harrisonjackson 7y agoExactly - this is native code that would need to be written either way, right?
- freehunter 7y agoThat's what I don't understand when people criticize frameworks like React Native... "I didn't like that I had to build 15% of the app in native code, so I ditched RN and now have to write 100% of the app in native code, but twice and in two different languages"?
- tilolebo 7y agoReact Native isn't the only abstraction out there. You could use Flutter, Ionic or similar. Or do they have the same issue?
- anon9001 7y agoThey all have the same issues, but RN has the largest community.
- davidwparker 7y agoFlutter has a larger number of "star" on Github. It also has more issues and more pull requests. React Native has 3x more followers on Reddit. So I guess it depends on your definition of community.
- s_y_n_t_a_x 7y agoFlutter is only in beta for desktop and web. And it's emulated UI, not true native UI. RN is ready now and today for all platforms, including Window via react-native-windows. Microsoft is choosing React, I wouldn't go w/ Flutter. Why would you choose a Google only language and framework... unless you like rewriting code when it dies. Also, w/ React you can use TypeScript or JS, you don't have to learn a new language. From my perspective, it looks like Google pays a lot of money for these tech articles and stars, it's not a really good way to look at things. There's always a Flutter campaign going on.
- greatjack613 7y agoAs much as I hate that google kills stuff often, the above comment is missing the fact that facebook also kills stuff often, they just never had any adoption in the first place so you don't notice
- s_y_n_t_a_x 7y agoBut React is more open source and flexible. Microsoft has embraced React and RN via their react-native-windows project, they are currently rewriting it from C# to C++, so it must be important. They use it for Skype and other products. Google isn't built on Flutter, not the important parts. Facebook has been building their stuff w/ React. They have over 10,000 components, I doubt they'll abandon it. Even if they do, React is much more flexible and open, it doesn't have a compiler or language tied to it either. If Google drops Flutter, you're fucked.
- therockhead 7y agoDoes RN work on macOS ?
- wdb 7y agoWell, React Native always gets a bit advertised as you don't need to know any native programming knowledge but that's not true. That's what I tried to say.
- greatjack613 7y agoIt is a heck lot easier to stick to 1 language with no plugins, then 3 languages with plugins for every native feature
- seanalltogether 7y ago> JavaScript developers are cheap to hire, and they don't need to know any objc/swift/java/kotlin to build the product. OP is pretty much saying that.
- neurostimulant 7y agoIt's actually not too bad. You don't even have to put those native code as a separate plugin. You can simply add the native code directly to the generated ios/android project like you do a native app.
- misiti3780 7y agoexpo is taking care of this, not there yet, but getting better every day.
- rhodysurf 7y agoThats a benefit of React Native though. Share as much code as possible and write wrappers for the Native features you need for your project. I really love the model.