import { Platform } from 'react-native' ; declare var require ; export const investigate = ( ) => { if ( Platform . OS === 'web' || ! __DEV__ ) { return { loaded : [ ] , waiting : [ ] } ; } const modules = require . getModules ( ) ; const moduleIds = Object . keys ( modules ) ; const loaded = moduleIds . filter ( moduleId => modules [ moduleId ] . isInitialized ) . map ( moduleId => modules [ moduleId ] . verboseName ) ; const waiting = moduleIds . filter ( moduleId => ! modules [ moduleId ] . isInitialized ) . map ( moduleId => modules [ moduleId ] . verboseName ) ; return { loaded , waiting } ; } ;