From bd3a3a4c8de94b27460e4cdf9b4b41f0eebe2156 Mon Sep 17 00:00:00 2001
From: Travis CI AppRegistry.registerComponent, then the native system can load the bundle
for the app and then actually run the app when it's ready by invoking
-AppRegistry.runApplication.
AppRegistry should be required early in the require sequence to make
+AppRegistry.runApplication.
To "stop" an application when a view should be destroyed, call
+AppRegistry.unmountApplicationComponentAtRootTag with the tag that was
+pass into runApplication. These should always be used as a pair.
AppRegistry should be required early in the require sequence to make
sure the JS execution environment is setup before other modules are
-required.
NOTE: This guide focuses on Android development. You'll need a Mac to build iOS apps.
As React Native on iOS requires a Mac and most of the engineers at Facebook and contributors use Macs, support for OS X is a top priority. However, we would like to support developers using Linux and Windows too. We believe we'll get the best Linux and Windows support from people using these operating systems on a daily basis.
Therefore, Linux and Windows support for the development environment is an ongoing community responsibility. This can mean filing issues and submitting PRs, and we'll help review and merge them. We are looking forward to your contributions and appreciate your patience.
As of version 0.14 Android development with React native is mostly possible on Linux and Windows. You'll need to install Node.js 4.0 or newer. On Linux we recommend installing watchman, otherwise you might hit a node file watching bug.
On Windows the packager won't be started automatically when you run react-native run-android. You can start it manually using:
NavigatorIOS wraps UIKit navigation and allows you to add back-swipe -functionality across your app.
A route is an object used to describe each page in the navigator. The first +functionality across your app.
NOTE: This Component is not maintained by Facebook
This component is under community responsibility. +If a pure JavaScript solution fits your needs you may try the
Navigator+component instead.
A route is an object used to describe each page in the navigator. The first
route is provided to NavigatorIOS as initialRoute:
Asynchronously determine if the device is online and on a cellular network.
none - device is offlinewifi - device is online and connected via wifi, or is the iOS simulatorcell - device is connected via Edge, 3G, WiMax, or LTEunknown - error case and the network status is unknownTo request network info, you need to add the following line to your
app's AndroidManifest.xml:
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
-Asynchronously determine if the device is connected and details about that connection.
Android Connectivity Types.
NONE - device is offlineBLUETOOTH - The Bluetooth data connection.DUMMY - Dummy data connection.ETHERNET - The Ethernet data connection.MOBILE - The Mobile data connection.MOBILE_DUN - A DUN-specific Mobile data connection.MOBILE_HIPRI - A High Priority Mobile data connection.MOBILE_MMS - An MMS-specific Mobile data connection.MOBILE_SUPL - A SUPL-specific Mobile data connection.VPN - A virtual network using one or more native bearers. Requires API Level 21WIFI - The WIFI data connection.WIMAX - The WiMAX data connection.UNKNOWN - Unknown data connection.The rest ConnectivityStates are hidden by the Android API, but can be used if necessary.
Available on Android. Detect if the current active connection is metered or not. A network is +Asynchronously determine if the device is connected and details about that connection.
Android Connectivity Types.
NONE - device is offlineBLUETOOTH - The Bluetooth data connection.DUMMY - Dummy data connection.ETHERNET - The Ethernet data connection.MOBILE - The Mobile data connection.MOBILE_DUN - A DUN-specific Mobile data connection.MOBILE_HIPRI - A High Priority Mobile data connection.MOBILE_MMS - An MMS-specific Mobile data connection.MOBILE_SUPL - A SUPL-specific Mobile data connection.VPN - A virtual network using one or more native bearers. Requires API Level 21WIFI - The WIFI data connection.WIMAX - The WiMAX data connection.UNKNOWN - Unknown data connection.The rest ConnectivityStates are hidden by the Android API, but can be used if necessary.
Available on Android. Detect if the current active connection is metered or not. A network is classified as metered when the user is sensitive to heavy data usage on that connection due to -monetary costs, data limitations or battery/performance issues.
Available on all platforms. Asynchronously fetch a boolean to determine internet connectivity.