TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Is React Native still popular?

76 点作者 haliskerbas超过 1 年前
I've been browsing a few react native repos and I notice a lot of them haven't been touched in a few years. Is it still popular? If not what's the current equivalent, or is native the flavor of the year?

34 条评论

cplantijn超过 1 年前
I think React Native is fantastic for getting out basic applications that may need camera, map, browser, and storage, etc capabilities. However, once you need more intricate functionality, I think it&#x27;s best to write modules in Swift&#x2F;(Kotlin&#x2F;Java) and have your React Native UI communicate with your modules via the bridge.<p>I think React Native solves an organizational bandwidth issue. Building true native applications per platform will always outshine any results you get from React Native, both in performance and capability. However, if you have just a few developers, I think React Native is a practicable compromise.<p>Companies like Airbnb have the engineering bandwidth to develop bespoke platform specific applications, it&#x27;s up to you and&#x2F;or the company you work for to know what compromises can be made.
评论 #38500460 未加载
评论 #38500366 未加载
评论 #38501647 未加载
评论 #38501717 未加载
hn_throwaway_99超过 1 年前
In my experience React Native has definitely &quot;lost its luster&quot;, primarily because it occupies a bit of a weird middle ground that nobody wants:<p>1. If you truly need all the advantages of native performance and integration, just go native. Yes, you&#x27;ll need to &quot;write it twice&quot;, but you&#x27;ll find that it&#x27;s actually easier to hire top notch iOS or Android devs in the first place (in my experience they tend to be partisans) with high productivity.<p>2. I think the biggest thing that has changed since React Native first came on the scene is that the <i>browser-based</i> cross-platform toolkits, things like the Capacitor framework (and starting with Progressive Web Apps in the first place), have gotten much better, and browser tech now gives loads of access to underlying devices and sensors (accelerometer, cameras, biometrics, etc.) React Native really came out with the idea of &quot;I&#x27;ve got all these web devs, can I make them productive on native mobile?&quot; I think things like Capacitor and their ilk are a much better option for this issue now.<p>So in my opinion, if you really need native, use the native frameworks, but if your app doesn&#x27;t need that and you can do cross-platform, use one of the web-view-based cross-platform frameworks.
评论 #38500542 未加载
评论 #38500618 未加载
nwienert超过 1 年前
It’s incredibly popular and imo has been having a bit of a resurgence as Meta has reinvested into it more heavily in the last couple years.<p>Evan Bacon does some tweets on it, but it’s one of the most popular libraries when you filter for top 100 apps in almost any category in the App Store.<p>If you want an active community and a bootstrap repo that is very robust, check out Tamagui (my project) which makes building universal native and web apps a breeze.
tentacleuno超过 1 年前
I&#x27;d say so, though after trying Expo (pretty much what most people use, FWIU) the experience can be... <i>trying</i> at times. I had a lot of dependency errors, weird errors which involved digging through issues to find (I believe Expo didn&#x27;t support .tsx by default... what?)<p>This isn&#x27;t coming from the usual &quot;JavaScript is bad&quot; crowd, but from someone who is generally quite favourable to JavaScript in general (while also recognizing its downsides). Overall, the experience is far from perfect, but I imagine you could make wonderful apps when you get the stack to work.<p>(In general, if there&#x27;s one thing I can&#x27;t <i>stand</i>, it&#x27;s debugging toolchains and build systems. Extremely boring, frustrating and tedious.)
评论 #38507179 未加载
评论 #38519673 未加载
jacobp100超过 1 年前
Yes it is still popular. Take a look at the showcase who is using it - Amazon was just added<p>Libraries have always been a unique problem to React Native. A lot of the time not maintained, and can be low quality too - like half baked re-implementations of existing native components, skipping the whole ‘native’ part<p>There’s not really another cross platform mobile framework in the same league. Flutter exists, and has its positives, but will never be an amazing experience on iOS. They don’t use native components, and the native components can access OS stuff not accessible by people other than Apple
评论 #38500635 未加载
Tronno超过 1 年前
Every tech has abandoned repos, especially popular ones.<p>As React Native matured in the past few years, the community developed improved solutions to common problems, and many older stop-gaps were rendered obsolete. Perhaps that&#x27;s what you&#x27;re seeing.<p>The only major competitor to React Native that I&#x27;m aware of is Flutter, but it has several drawbacks that make me hesitate to recommend it.
评论 #38500405 未加载
评论 #38500537 未加载
chromakode超过 1 年前
Discord&#x27;s iOS and Android apps are built using React Native [1]. This enables business logic to be shared with the desktop and web clients, as well as shared UI components between both mobile apps.<p>Part of the reason you see abandoned repos is because the community has adopted libraries like Reanimated, React Native Gesture Handler, and React Navigation, which offer a lot of leverage to implement ambitious animations and native experiences in JS&#x2F;TS.<p>React Native is mature enough to build big apps, and the community is active. It&#x27;s still necessary to reach into Swift&#x2F;Kotlin to implement some things, but for large apps that&#x27;s not an unexpected lift. For cross platform JS&#x2F;TS apps, no alternative offers the code sharing and delivery flexibility advantages of RN. I expect it&#x27;ll remain relevant due to it&#x27;s unique advantages and the community library stack will continue to mature.<p>[1] <a href="https:&#x2F;&#x2F;discord.com&#x2F;blog&#x2F;android-react-native-framework-update" rel="nofollow noreferrer">https:&#x2F;&#x2F;discord.com&#x2F;blog&#x2F;android-react-native-framework-upda...</a>
评论 #38501919 未加载
评论 #38501856 未加载
wiradikusuma超过 1 年前
Disclaimer: I wrote a book about creating apps, end-to-end, and I use Flutter <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38433668">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=38433668</a><p>It&#x27;s the same thing with the Flutter ecosystem. Half of the libraries I use in my existing projects haven&#x27;t been updated in a year (they were active when I picked them). They still work, but considering Flutter (and Dart) move so fast, it gives me the heebie-jeebies.<p>If you&#x27;re comfortable with JS, go for it (React Native). But before you commit, think ahead of the must-have UIUX features for your app and build a PoC. Don&#x27;t be surprised when you can use built-in&#x2F;stock camera access in less than an hour, but you need hundreds of hours to make a custom camera screen.
Mc91超过 1 年前
I look online for Android programmer jobs, I see React Native often enough when someone is looking for an Android or mobile programmer.<p>It&#x27;s a large skillset people want - you need to know Javascript, then probably some HTML and CSS, then the React framework. Enough to get you a job as a React JS programmer - but then you should know React Native as well. Plus, RN does not cover every case, so know the Android ecosystem (Kotlin and Android SDK, plus maybe some Java) and the iOS ecosystem (Swift and iOS SDK, plus maybe some Objective C). Most large companies tend to have a separate Android and iOS app, although not all (Discord is React Native IIRC).<p>It makes some sense in a startup possibly - have a few RN programmers and have one or two dive into RN and do Android and iOS apps for your product, some of it using your existing codebase. From all I have heard, it does not scale, although maybe companies like Discord make it work for their use case. Once a Series A or series B kicks in, engineering has to stop and look whether they want to continue adding on to this rickety future, or get a small Android and iOS team together and do native apps.
danielrhodes超过 1 年前
I’ve built a a couple apps in React Native over the past few years.<p>My reasoning for wanting to use React Native is primarily because I think the iOS ecosystem is a real mess right now. SwiftUI is not mature, and UIKit is antiquated compared to the needs of today. If you’re just starting out, the force multiplier you get from RN is almost too difficult to ignore.<p>1) Even in the last couple years, React Native has gotten much better. The performance gap is not noticeable anymore. In fact, in some cases I think it has been easier get better performance in RN than using native.<p>2) It does feel like there was a wave where tons of libraries were created and then abandoned. But overall there are lots of libraries which are good and well maintained.<p>3) Native is still better if you need really tight experiences, but this gap is also closing. Since you can easily drop down to native, this issue shouldn’t be a big deal.
blovescoffee超过 1 年前
Yes. Check out Expo. It&#x27;s recommended by the React Native docs and it&#x27;s very actively maintained&#x2F;growing. Some big names are switching though. AirBnb has a few blog posts about switching to true native.
tschellenbach超过 1 年前
At Stream we used to hire for react native quite easily. Nowadays it&#x27;s impossible to find experienced people who want to work with RN. Don&#x27;t see that issue on Go, or any of our other SDKs. In case anyone is looking for a lead RN role remote EU or amsterdam: <a href="https:&#x2F;&#x2F;getstream.io&#x2F;careers&#x2F;job&#x2F;5714344003&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;getstream.io&#x2F;careers&#x2F;job&#x2F;5714344003&#x2F;</a>
评论 #38500640 未加载
chfalck超过 1 年前
I’d say it’s definitely got its merits. If you have a React web app built for desktop browsers, and you’ve cleanly separated your code so that the data layer of API calls, types, utilities, etc… is separate from the desktop UX layer, you suddenly have an awesome way to save time and money. You write the data layer, and then your desktop and mobile apps can all save a ton of duplicated work and maintenance and stay in sync with each other.
plagiarist超过 1 年前
Most of the discussion I hear about React Native is that it&#x27;s fine for the basics but very quickly ends up needing special code to handle all the platforms&#x27; various eccentricities. And then you have web-like latency that is kindof a turnoff compared to native apps.<p>I have heard people recommend Flutter recently, but I have even less knowledge about that than the anecdata I have about React Native.
评论 #38500298 未加载
sambeau超过 1 年前
I recently built a couple of apps in it and I found it to be great—I would recommend it, assuming that your app has similar functionality to a web app—text, images, data fields, fairly standard navigation (some of the more sophisticated interactive&#x2F;canvas-based apps look a little trickier). The only issue I&#x27;ve stumbled across is that React Native added a new rendering engine recently, and some of the animation libraries need updating to work with it (but, that work seems under way). In general, it was straightforward to work with, I found working libraries for pretty much everything I wanted, and I had a nice little iOS app with swiping, infinite scrolling with lazy loading, pull-to-refresh, streaming audio, native icons, popup sheets, and supabase integration, working in under a week.
bamazizi超过 1 年前
Github open source projects are not at all an indicator of &quot;popularity&quot;. There are vast amount RN apps on the appstores and closed source.<p>As someone who has tried most of the options for streaming realtime mobile app, I landed on RN&#x2F;EXPO for the sole reason of community size and ease of use. Basically everything is possible!<p>Typical recommendation has been to build MVPs in RN and then switch to native after your raise funds, but strongly advise against it unless the nature of your app demands native implementation. You can stick with RN all the way to FB&#x2F;Instagram scale!
charrondev超过 1 年前
Anecdote here:<p>Recently I started working on an mobile application as a personal project. It involves scraping web pages and generating ebooks from them with an inbuilt reader with visual controls.<p>I’d never worked with Swift or UIKit previously and I’ve worked professionally with React for a few years so I considered using React Native.<p>100s of abandoned repos, janky build tooling, a and a weird split with something called expo caused me to avoid React Native altogether and I’ve been happily learning SwiftUI and UIKit.
评论 #38500309 未加载
samyar超过 1 年前
All these react haters here are just scared of losing their jobs. I love it I can build what I want easily with RN. I know that I sound stupid but that&#x27;s the reality
turnsout超过 1 年前
From what I’ve seen in the corporate world, it’s the overwhelming default. The business simply will not pay for separate native iOS &amp; Android apps, even if you present convincing evidence that it’s better, faster and cheaper.<p>It’s not the worst thing in the world, but React Native makes your entire app feel kind of janky and clunky. It’s frustrating when something as simple as a push transition looks and works 1000X better with a few lines of SwiftUI.
评论 #38501849 未加载
评论 #38501722 未加载
rattray超过 1 年前
You might be interested in Jebtrains&#x27; Kotlin Compose Multiplatform, which lets you cross-compile to native UI in iOS, android, and others - and pretty smoothly interop with native iOS code (especially UI code).<p><a href="https:&#x2F;&#x2F;www.jetbrains.com&#x2F;lp&#x2F;compose-multiplatform&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.jetbrains.com&#x2F;lp&#x2F;compose-multiplatform&#x2F;</a><p>I think it&#x27;s new, and I haven&#x27;t tried it myself.
robust-cactus超过 1 年前
I&#x27;d say yes, I&#x27;m seeing big consumer companies switch to it from native these days.<p>If you&#x27;re just getting started I highly recommend expo. I wrote an article on building a game using it over say unity not too long ago <a href="https:&#x2F;&#x2F;parrisneeds.coffee&#x2F;posts&#x2F;making-a-game-in-react-native" rel="nofollow noreferrer">https:&#x2F;&#x2F;parrisneeds.coffee&#x2F;posts&#x2F;making-a-game-in-react-nati...</a>
mdwagner超过 1 年前
I&#x27;ve really enjoyed using Hyperview (<a href="https:&#x2F;&#x2F;hyperview.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;hyperview.org&#x2F;</a>) recently, which uses React Native as a base. I used to think PWA&#x2F;Ionic&#x2F;Capacitor apps were better, but have really fallen in love with the simplicity of Hyperview and tools like HTMX.
评论 #38612886 未加载
评论 #38503429 未加载
bilalq超过 1 年前
React Native has been great. Until recently, updating old versions of React Native had been a real challenge though. The complexity all comes from the native layer bits though.<p>A lot of SaaS providers offer React Native components that are ready to go, even newish startups. The ecosystem feels strong and it&#x27;s way more economical than writing two separate apps.
CerebralCerb超过 1 年前
I picked up React Native and Expo last year for a medium-sized hobby project and found it a better experience than when I developed a Flutter app three years ago. I have always heard the React Native dependencies were a mess, but I did not have that experience. Things were stable and Expo has pretty good documentation.
atomicnature超过 1 年前
My thinking on this: Avoid React Native if at all possible.<p>You want a primarily information-oriented software, without lots of manipulation&#x2F;interaction, then go with Webview based solutions (capacitor + react).<p>You want performant manipulation&#x2F;interactive software, go native.
bopinto超过 1 年前
AFAIK Microsoft built the latest Office on top of it.<p><a href="https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;react-native&#x2F;2023-09-08-rneu-from-gaming&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;devblogs.microsoft.com&#x2F;react-native&#x2F;2023-09-08-rneu-...</a>
tomwilson超过 1 年前
Expo has taken over the react-native scene - look at the libraries they use and you will find them pretty active.<p>The expo approach to generating the native projects is just better than the OOB react-native stuff which makes upgrades extremely tedious.
meiraleal超过 1 年前
Not much anymore, React Native isn&#x27;t really a better way to develop apps. It is as complex as developing native apps and as you mentioned, the libraries aren&#x27;t good enough&#x2F;well maintained.
gardenhedge超过 1 年前
I tried RN and Flutter and I liked Flutter more.
JofArnold超过 1 年前
Very. But a lot of packages I think have been abandoned in favour of those built by Expo.
k__超过 1 年前
Check out Expo, that&#x27;s probably the most active React Native project.
utybo超过 1 年前
I&#x27;d say yes, although somewhat through Expo nowadays
flopriore超过 1 年前
What about Flutter?
Can_K超过 1 年前
Good, that means its slowly getting stable!