Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native - React Native Architecture

Does React Native Application Development can be implement with Software Architecture such as MVC, MVP, MVVM?

Thank you.

like image 220
I am a Student Avatar asked Mar 05 '18 09:03

I am a Student


People also ask

Is React Native MVC or MVVM?

React is just a View Layer, so you have the freedom to implement it however you want it. You could choose MVC, MVVM, but as a personal choice i would recommend Flux or any unidirectional architecture.

How React Native works with native?

Firstly, by using React Native, companies can create code just once and use it to power both their iOS and Android apps. This translates to huge time and resource savings. Secondly, React Native was built based on React – a JavaScript library, which was already hugely popular when the mobile framework was released.

What is React Native and how is it used and explain architecture of React Native?

React Native is an open-source framework built by Facebook that helps us to use JavaScript for creating mobile applications. It is being widely used in the industry, right from Facebook which is its creator, but it is also used by enterprise companies like Amazon and Microsoft, and even by some startups.

How React Native works internally?

Instead of rendering to the browser's DOM, React Native invokes Objective-C APIs to render to iOS components, or Java APIs to render to Android components. This sets React Native apart from other cross-platform app development options, which often end up rendering web-based views.


1 Answers

Yes. React Native is just the "V" in those software design patterns you're mentioning. If you consider other libraries around React, like Flux, then maybe my answer isn't 100% accurate. I recommend reading this:

https://medium.com/javascript-inside/what-if-react-was-really-only-the-v-in-mvc-5854fd6f601c

Here's a more complete answer, considering the App not being just React Native but also the backend and the data models involved:

https://medium.com/of-all-things-tech-progress/understanding-mvc-architecture-with-react-6cd38e91fefd

Hope it helps.

like image 72
Luis Serrano Avatar answered Oct 24 '22 22:10

Luis Serrano