React Native lets you build mobile apps using only JavaScript. It uses the same design as React, letting you compose a rich mobile UI from declarative components.
With React Native, you don't build a “mobile web app”, an “HTML5 app”, or a “hybrid app”. You build a real mobile app that's indistinguishable from an app built using Objective-C or Java. React Native uses the same fundamental UI building blocks as regular iOS and Android apps. You just put those building blocks together using JavaScript and React.
It is open-source and maintained by Facebook.
Source: React Native website
Troubleshootings :
Could not connect to development server
=> Do this : adb reverse tcp:8081 tcp:8081
, make sure that your phone is connected (adb devices). Verify also that there is a local server launched, if not run react-native start
References:
RefreshControl: https://facebook.github.io/react-native/docs/refreshcontrol.html
ListView: https://facebook.github.io/react-native/docs/listview.html
Most React Native styles are their CSS forms, but in camel case. So, text-decoration
becomes textDecoration
.
Unlike in CSS, styles do not get inherited. If you want child components to inherit a certain style, you must explicitly provide it to the child. This means that you cannot set a font family for an entire View
.
The one exception to this is the Text
component: nested Text
s inherit their parent styles.
A more detailed description is also mentioned here: https://facebook.github.io/react-native/docs/signed-apk-android.html
Refer GitHub Repo of this module for more details.