反应本机与CRNA [英] React Native vs CRNA

查看:91
本文介绍了反应本机与CRNA的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从React Native应用程序开发开始,需要帮助来决定我应该走哪条路。


主要问题是:我应该使用React Native还是创建react native应用程序?


据我了解,CRNA实际上是使用expo客户端和工具进行本机反应,使用起来更舒适(不需要开发者帐户等)


我可以看到使用CRNA优于本机反应(不需要建立依赖关系,不需要花费更多的时间来开始开发,不需要iPhone开发人员帐户或xcode + android combi等)


但是,由于未包含所有本机库,因此我认为自己仍然需要在以后导出应用程序,并像以前一样继续使用xcode和Android Studio。


因此,如果CRNA只是一切入门的好方法,那么我会立即做出原生反应,因为我认为临时解决方案根本没有用。


此外,也许您可​​以对此进行纠正,我可以除非我错过了一些更关键的优势,否则不希望在我的应用程序之上再放一个包装器。


所以,请您分享一下您的经验吗?如果您过去使用React Native开发过应用程序,那么您会走哪条路,将来会走哪条路?是React Native,CRNA还是React Native和博览会环境?

解决方案

我还将分享我在该主题上的一些经验。 / p>

由于我有前端背景并且对XCode或Android Studio不熟悉,所以我决定从CRNA开始本机应用程序的开发。



仅使用文本编辑器,完全使用javascript并利用内置的expo SDK组件,我很快就能实现并发布到播放存储一个相当简单的应用
我发现确实很棒:)



但是发布该应用程序后,我意识到存在一些陷阱,使其无法与同类Java竞争: p>

最大的IMO是使用 exp
服务生成的apk的大小。
对于只有3个屏幕且业务逻辑不多的应用程序,安装后25 mb和约60 mb确实很多。
根据博览会开发人员较复杂的应用程序的大小大致相同或略大,这是因为该大小的大部分是本机依赖性,而不是实际的javascript端。
但这仍然是一个大问题,无论如何,我可能都不得不弹出该应用来优化构建大小



因此,一般而言,CRNA是一种很好的快速启动方式,并且可以正常工作,但是在将应用发布给用户之前,您将避免设置自定义版本以及所有依赖项,例如Android Studio


I want to start with React Native app development and need help to decide on which path I should go.

The main question is: should I go with React Native or create react native app?

From what I understand, CRNA really is react native using the expo client and tools, with a more comfortable use (no dev account required, etc)

I can see the advantages with using CRNA over react native (no being no need to set up dependencies, faster time to start with developing, no need for iPhone dev account or xcode+android combi, etc.)

However, as not all native libraries are included, I see myself in the need to export my app at a later point anyway and continue to work with xcode and Android Studio just like before.

So, if CRNA is just a nice way to get started with everything, then I would go for vanilla react native right away as I see no point in a temporary solution at all.

Also, and maybe you can correct me on this, I do not like the idea to have just another wrapper on top of my app, unless there are some more crucial advantages which I missed out.

So could you please share your experience on this? If you have developed apps with react native in the past, which path did you go and which path will you go in the future? React Native, CRNA or React Native and expo environment?

解决方案

Hi I will also share some of my experience on the topic.

Since I have a front end background and was not familiar with XCode or Android Studio I've decided to start my native app developement from CRNA.

Indeed with just a text editor, purely with javascript and utilizing built-in expo SDK components I was quickly able to implement and publish to Play Store a fairly simple app. That I find truly amazing :)

However after publishing the app I realized there are some pitfalls that unable it to compete with similar rival Java apps:

The biggest IMO is the size of the apk generated with exp service. For the app with just 3 screens and not a lot business logic, 25 mb and about 60mb after install is really a lot. According to expo devs more complex apps will be approximately the same size or only slighty larger due to the bulk of the size being the native dependencies, and not actual javascript side. But this still is a big problem and I will probably have to anyway eject the app to optimze the build size

So in general CRNA is a great and fast way to start and have something working but still before publishing the app to the users you'll not avoid seting up your custom build and all the dependencies like Android Studio

这篇关于反应本机与CRNA的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆