Hello
, the container will create an Activity-extending class named HelloActivity
. It will also be declared in the AndroidManifest.xml
file of the container so that you can launch it from your mobile application without extra setup.com.walmartlabs.ern.container.miniapps
namespace.componentWillMount
React lifecycle. This might be useful if the MiniApp needs data when first launched.ElectrodeMiniAppActivity
class. startActivity
, while the second parameter is a Bundle instance containing the data to provide to the MiniApp as key:value pairs.ElectrodeMiniAppActivity
class and override the methods to your needs.ElectrodeMiniAppActivity
as a template to roll your own class.UIViewController
for each MiniApp included in the Container. For example, if you have a MiniApp named Hello, the container will create a UIViewController
that contains the Hello miniapp--and it's the same UIViewController
that you are already familiar with.UIViewController
by calling [[ElectrodeReactNative sharedInstance] miniAppWithName:@"<your-mini-app-name>" properties:nil]
componentWillMount
React lifecycle. This might be useful if the MiniApp needs data when first launched. To do this, pass an NSDictionary
to the parameter property
.UIViewController
is basic and might not fulfill your advanced needs. If you would like to use your own subclass of the UIViewController
, you must override viewDidLoad:
in your UIViewController
as shown below: