import { Constructor } from '@ulangi/extended-types' ; import { Navigation } from '@ulangi/react-native-navigation' ; import * as _ from 'lodash' ; import * as React from 'react' ; import { Provider } from '../Provider' ; import { CustomViews } from '../constants/CustomViews' ; export function registerCustomViews ( ) { _ . forOwn ( CustomViews , ( component , name ) : void => { Navigation . registerComponentWithRedux ( name , ( ) : Constructor < React . Component > => component , Provider , null ) ; } ) ; }