Skip to main content
Version: 1.x

register

register - allow you wrap your component/screen into separate bundle

register(params: Object) - return react component

  • name (optional) - you need to specify this param only if you will call preload function for this screen
  • require - function, that return your presentation component. Example: () => require('./Presentational.js')
  • group (optional) - You need specify it, only if you need to preload entire group of screens
  • static (optional) - all static members from your presentational component.
  • cached (optional) - Default: true. Set to false if you don't need cache your screens. Warning: it may decrease performance of your application.
  • placeholder (optional) - React component which will display during screen loading. Should specify if you don't use preload for this screen.