ReactApplication
ReactApplication provides a BaseApplication class for use in applications that are entirely written in react-native. ReactApplication will load the react instance on launch of your app for you and provide accessors to your application's ReactInstanceSettings and ReactNativeHost to customize your react instance.
Reference
Properties
InstanceSettings
ReactInstanceSettings InstanceSettings { get; set; }
Provides access to your application's ReactInstanceSettings. Generally changes to these settings will not take affect if the react instance is already loaded, unless the react instance is reloaded. So most settings should be set in your applications constructor.
PackageProviders
IVector<IReactPackageProvider> PackageProviders { get; }
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.
Host
ReactNativeHost Host { get; }
Access to the ReactNativeHost
of your application.
UseDeveloperSupport
bool UseDeveloperSupport { get; set; }
Should the developer experience features such as the developer menu and RedBox be enabled. See ReactInstanceSettings.UseDeveloperSupport
.
JavaScriptMainModuleName
string JavaScriptMainModuleName { get; set; }
See ReactInstanceSettings.JavaScriptMainModuleName
.
JavaScriptBundleFile
string JavaScriptBundleFile { get; set; }