setup

abstract fun setup(platform: String?, bundleEntry: String?, host: String?, port: Int, isEnabled: Boolean, scheme: String?)

Enable the HMRClient so that the client will receive updates from Metro.

Parameters

platform

The platform in which HMR updates will be enabled. Should be "android".

bundleEntry

The path to the bundle entry file (e.g. index.ios.bundle).

host

The host that the HMRClient should communicate with.

port

The port that the HMRClient should communicate with on the host.

isEnabled

Whether HMR is enabled initially.

scheme

The protocol that the HMRClient should communicate with on the host (defaults to http).