ern linkcommand is helpful during development of your MiniApps as a way to develop and debug your application. The command is also helpful as a way to use the react-native hot reload feature for your MiniApps when the command is run inside a host application along with other MiniApps.
ern linkcommand was developed to help with developing and debugging MiniApps when running them inside a target native host application. This benefit is realized in the following scenario: When you run multiple MiniApps together in the native application, you cannot use the
react-native startcommand from within your MiniApp directory and load the bundle from the local react-native packager as you would normally do when running your MiniApp standalone in the runner.
ern linkcommand to help with developing and debugging MiniApps when running them inside a target native host application.
ern linkor the
ern unlinkplus the
ern startcommands are used together to achieve this.
ern linkcommand, the link to the MiniApp directory remains in effect until you unlink it using the
ern startcommand. This command creates a composite bundle with all the MiniApps contained within the native application and starts the react-native packager for this bundle.