import { Constructor } from '@ulangi/extended-types' ; import { Navigation } from '@ulangi/react-native-navigation' ; import * as _ from 'lodash' ; import { Provider } from '../Provider' ; import { ScreenContainers } from '../constants/ScreenContainers' ; import { extendContainer } from '../decorators/extendContainer' ; export function registerScreens ( ) { _ . forOwn ( ScreenContainers , ( container , screenName ) : void => { Navigation . registerComponentWithRedux ( screenName , ( ) : Constructor < React . Component > => extendContainer ( container ) , Provider , null ) ; } ) ; }