import NetInfo from '@react-native-community/netinfo' ; import { getEnabledTools } from './parts/help' ; import { loadFavoriteBuildings } from './parts/buildings' ; import { loadAcknowledgement } from './parts/settings' ; import { loadRecentSearches , loadRecentFilters } from './parts/courses' ; export async function init ( store ) { await Promise . all ( [ store . dispatch ( loadAcknowledgement ( ) ) , store . dispatch ( loadFavoriteBuildings ( ) ) , store . dispatch ( loadRecentSearches ( ) ) , store . dispatch ( loadRecentFilters ( ) ) , ] ) ; await NetInfo . fetch ( ) ; await Promise . all ( [ store . dispatch ( getEnabledTools ( ) ) ] ) ; }