Skip to main content
Version: 0.83

ReactApplication

Kind: class

Extends: Application

The ReactApplication is a base application class for use in applications that are entirely written in React Native. When the app launches, the ReactApplication will load the React instance. Use ReactInstanceSettings and ReactNativeHost properties to customize React instance in your application's constructor.

Properties​

BundleAppId​

string BundleAppId

See ReactInstanceSettings.BundleAppId.

Host​

readonly ReactNativeHost Host

Access to the ReactNativeHost of your application.

InstanceSettings​

ReactInstanceSettings InstanceSettings

Provides access to your application's ReactInstanceSettings. Generally, changes to these settings will not take effect if the React instance is already loaded, unless the React instance is reloaded, so most settings should be set in your application's constructor.

JavaScriptBundleFile​

string JavaScriptBundleFile

See ReactInstanceSettings.JavaScriptBundleFile.

PackageProviders​

readonly IVector<IReactPackageProvider> PackageProviders

Provides access to the list of IReactPackageProvider's that the instance will use to provide native modules to the application. This can be used to register additional package providers, such as package providers from community modules. See ReactNativeHost for more information.

UseDeveloperSupport​

bool UseDeveloperSupport

Controls whether the developer experience features such as the developer menu and RedBox are enabled. See ReactInstanceSettings.UseDeveloperSupport.

Constructors​

ReactApplication​

ReactApplication()

Creates a new instance of ReactApplication