So What is React native let’s start the react part also known as React.js which is the name of that library I do expect that you know what react.js is you don’t have to be an expert in react.js but you should know what react.js.

Is nonetheless let briefly summarize what it is so that we’re on the same page. It’s a javascript library for building user interfaces that are the official definition that is what reacts does in the end.

It runs javascript and it’s good at building user interfaces typically we use react in web development for building.

web app but it’s important to understand that react itself the library actually make on assumption about what we’re building with a because it’s actually another library which you’ll also use when you’re building a web app with react that is responsible for rendering
something onto the screen and that’s the react don library.

Now in every react for web project you’re working on you will call reactDOM.
render some point of time and hand of the react app to that method to actually render something onto the screen and that’s the library that knows about the web and knows how to render HTML elements and so on.

React itself is platform-agnostic it’s just a library that good at building trees of component,
finding out whether something changed is something that needs to be re-rendered, of managing state.

of possing data around but it does so in an abstract way which is why you can use react on any platform you’re not restricted to the browser, to HTML to the web you can use the logic react gives you anywhere,it’s the react-dom part that then knows how to work him
HTML and so on and that is super important to understand because that’s important when we think about react-native.

React native is a separate library which in the end is a collection of special react
are special because react-native actually knows how to translate them how to compile these components to native widgets for iOS and for android So react-native kind of is like react-dom .

It knows how to talk to the native platform to android and iOS and how to render native widgets and it gives you a bunch of these widgets as react components so that you can build a user interface with these components so to say because you won’t be able to use your regular divs and h1 and paragraph tags in react native apps because there are no direct equivalents for that in native code but I’II come back to that now besides giving you these components.

React native is a bit more than that it also gives you access to some native platform APIs, for example, it helps you use the device camera so things like that common tasks you would want to do in native apps and in general react-native give you tools to connect javascript code to native platform code because you typically build a react native
app by mostly writing javascript code or depending on the app you’re building by entirely writing javascript code .

Now I say mostly at least that’s a possibility because you can also write native code for iOS or android and react-native gives you the tools to connect your javascript code to that native code though that’s a bit more advanced and in many apps,

you will never need that and therefore react-native gives you full the flexibility It gives you a way of connecting javascript to native code and it also gives you a lot of pre-built native features which are conveniently usable from inside your javascript code

so if you then combine react native and the features that give you with react.js which knows how to be update a user interface and how to control a user interface then you get everything you need to compile a real native mobile app and that’s also what react-native gives yo everything you need to then take your javascript code and compile that to a real native mobile app which you can then ship to the app store for iOS or to the google play store for android.

so you get a real native mobile app as a result in the end

This article is written by our awesome writer
Comments to: What is React native briefly explain

Your email address will not be published. Required fields are marked *

Attach images - Only PNG, JPG, JPEG and GIF are supported.

New Dark Mode Is Here

Sign In to access the new Dark Mode reading option.

Join our Newsletter

Get our monthly recap with the latest news, articles and resources.

By subscribing you agree to our Privacy Policy.

Latest Articles

Explore Tutorials By Categories

About

Codeverb is simply an all in one interactive learning portal, we regularly add new topics and keep improving the existing ones, if you have any suggestions, questions, bugs issue or any other queries you can simply reach us via the contact page

Login

Welcome to Codeverb

Ready to learn something new?
Join Codeverb!

Read Smart, Save Time
  •  
    Strength indicator
  •  
  •  
    Log In | Lost Password