Refactor app flows and refresh UI components
This commit is contained in:
@@ -9,8 +9,10 @@ import { Platform } from 'react-native'
|
||||
|
||||
const functionsInstances = {}
|
||||
const emulatorConfigured = {}
|
||||
const emulatorHost = Platform.OS === 'web' ? 'localhost' : '192.168.1.60'
|
||||
const USE_FUNCTIONS_EMULATOR = __DEV__
|
||||
const emulatorHost =
|
||||
process.env.EXPO_PUBLIC_FIREBASE_EMULATOR_HOST ||
|
||||
(Platform.OS === 'web' ? 'localhost' : '127.0.0.1')
|
||||
const USE_FUNCTIONS_EMULATOR = __DEV__ && process.env.EXPO_PUBLIC_USE_FIREBASE_EMULATORS === 'true'
|
||||
|
||||
const configureFunctionsEmulator = (instance, regionKey = 'us-central1') => {
|
||||
const shouldUseEmulator = USE_FUNCTIONS_EMULATOR && instance?.useEmulator
|
||||
|
||||
Reference in New Issue
Block a user