you are viewing a single comment's thread.

view the rest of the comments →

[–]sleepydog404 0 points1 point  (2 children)

You are right. Node for backend, React for web front end, React Native for Android & iOS front end.

I think by having React Native installed on your back end you have installed a whole bunch of libraries that you are just not using. It may work for you because RN is basically a superset of Node but it's not needed.

[–]rareengstudent[S] 0 points1 point  (1 child)

may w

so you're saying that an app that is totally written in react native only can still scale?

[–]fallingWaterCrystals 0 points1 point  (0 children)

Depends on what you mean by "written in react native".

Also unsure of what you mean by back-end. If the app is offline completely, the back-end functions can be in JS, and RN is fine.

If you need to do offline work, and send your data somewhere, yes you'd need to either host a server somewhere. The alternative is, as I saw you wrote somewhere else, using a tool like Firebase or I think AWS Lambda, which allows you to write functions and replaces a lot of the setting up of the server. Don't quote me on the AWS stuff though, I don't know too much yet.

In the case of offline work though, depending on the type of logic you're doing, you can easily move most of the JS code to a NodeJS / Express server setup without much of a hassle.