Methods
-
registerAll( miniappName )
-
Description
Register all screens.Parameters
Name Type Description miniappName
string The name of the miniapp. Details
Name | Type | Description |
---|---|---|
screens |
Object | The screens to register. |
options |
Object | The navigation options. |
import {AppNavigator} from 'ern-navigation';
new AppNavigator(
{
MainScreen: MainScreenComponent,
SecondScreen: SecondScreenComponent,
},
{initialScreen: 'MainScreen'},
).registerAll('MyMiniApp');
Name | Type | Description |
---|---|---|
miniappName |
string | The name of the miniapp. |