ern run-android
and ern run-ios
).react-native init
. One of the differences with React Native is that we generate our own native projects which use a locally generated ern
container.android
and ios
directories are not created by this command. They will be generated by ern run-android
and ern run-ios
.ern create-miniapp <appName>
<appName>
-miniapp
--language <TypeScript | JavaScript>
--template
to use custom templates, for example--template react-native-template-typescript
TypeScript
or JavaScript
)JavaScript
.--scope/-s <scope>
package.json
of the generated MiniApp.--packageManager <npm | yarn>
npm
or yarn
)ern.packageManager
in the MiniApp package.json
.ern add
and ern upgrade-miniapp
commands. It won't apply for creating the MiniApp. Electrode Native is internally running react-native init
command which uses Yarn by default, if available on the machine, when creating an app. React Native does not offer this to be configured as of now. If you wish to use npm, you will have to manually remove yarn.lock
and node_modules/
in the MiniApp directory after creation, and run npm install
.--packageName/-p <name>
package.json
of the generated MiniApp.--platformVersion/-v <version>
--skipInstall
--skipNpmCheck
npm info
to check manually--manifestId <manifestId>
--template <template>
android
and ios
directories).ern create-miniapp MyAwesomeApp
MyAwesomeApp
.ern create-miniapp MyAwesomeApp --scope MyCompany
MyAwesomeApp
and use MyCompany
as the scope of the MiniApp npm package.ern create-miniapp MyAwesomeApp --packageName my-awesome-app
MyAwesomeApp
and use my-awesome-app
as the name of the MiniApp npm package.ern
equivalent of the react-native init
command.