new AppNavigator( screens, options )

Parameters
Name Type Description
screens Object The screens to register.
options Object The navigation options.
Examples
import {AppNavigator} from 'ern-navigation';
			
			new AppNavigator(
			  {
			    MainScreen: MainScreenComponent,
			    SecondScreen: SecondScreenComponent,
			  },
			  {initialScreen: 'MainScreen'},
			).registerAll('MyMiniApp');
Details

Methods


registerAll( miniappName )

Description
Register all screens.
Parameters
Name Type Description
miniappName string The name of the miniapp.
Details