LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ern

React Native integration platform for native apps

TLDR

Create a new MiniApp project
$ ern create-miniapp [app-name]
copy
Run a MiniApp on Android
$ ern run-android
copy
Run a MiniApp on iOS
$ ern run-ios
copy
Create a new API module
$ ern create-api [api-name]
copy
Add a dependency to a MiniApp
$ ern add [dependency]
copy
Start the development server for MiniApps
$ ern start
copy
Push an OTA update via CodePush
$ ern code-push [miniapps] -d [descriptor]
copy

SYNOPSIS

ern command [options]

DESCRIPTION

ern (Electrode React Native) is a platform for integrating React Native into existing native applications. It provides tools for building, managing, and deploying React Native "MiniApps" within native mobile apps.The platform includes a Cauldron for version management, Container generation for bundling MiniApps with native dependencies, and APIs for communication between React Native and native code.ERN enables incremental React Native adoption in existing mobile applications.

PARAMETERS

COMMAND

ERN operation to perform.
create-miniapp NAME
Create a new MiniApp project (equivalent to react-native init).
run-android
Run MiniApp on Android emulator or device.
run-ios
Run MiniApp on iOS simulator or device.
create-api NAME
Create a new API with generated client code.
start
Start the Electrode Native development server (packager).
add DEPENDENCY
Add a JavaScript or native dependency to a MiniApp.
cauldron COMMAND
Manage the Cauldron (version registry for native app containers).
code-push MINIAPPS
Push OTA updates via CodePush.
link
Link a MiniApp for local development and debugging.
--help
Display help information.

CAVEATS

Requires native development setup (Android SDK and/or Xcode). Complex architecture learning curve. Integrates with existing apps differently than standalone React Native.

HISTORY

Electrode React Native was developed by Walmart Labs to enable their gradual adoption of React Native in their existing mobile applications, addressing enterprise integration challenges.

SEE ALSO

react-native(1), npm(1), yarn(1), node(1)

Copied to clipboard
Kai