2026-07-25 08:10:48 +00:00
// Module ID: 3866
2026-07-27 11:26:19 +00:00
// Function ID: 32134
2026-07-25 08:10:48 +00:00
// Name: getInstalledNitro
// Dependencies: [27, 3867, 3868]
// Exports: isRuntimeAlive
// Module 3866 (getInstalledNitro)
import { TurboModuleRegistry } from "get ActivityIndicator" ;
function getInstalledNitro ( ) {
return global . NitroModulesProxy ;
}
const installedNitro = getInstalledNitro ( ) ;
let tmp3 = installedNitro ;
if ( null != installedNitro ) {
if ( tmp3 . version !== require ( "items" ) . version ) {
const _Error2 = Error ;
const version = tmp3 . version ;
const _HermesInternal2 = HermesInternal ;
const error = new Error ( "Nitro was installed twice: once with native version " + version + " and once with JS version " + require ( "items" ) . version + ". This usually means react-native-nitro-modules exists multiple times in node_modules (e.g. in monorepos or double-linked setups)." ) ;
throw error ;
}
} else {
const enforcing = TurboModuleRegistry . getEnforcing ( "NitroModules" ) ;
const installResult = enforcing . install ( ) ;
if ( null != installResult ) {
const _Error = Error ;
const _HermesInternal = HermesInternal ;
const error1 = new Error ( "Failed to install Nitro: " + tmp21 ) ;
throw error1 ;
} else {
const installedNitro1 = getInstalledNitro ( ) ;
tmp3 = installedNitro1 ;
if ( null == installedNitro1 ) {
const _Error3 = Error ;
const error2 = new Error ( "NitroModules was installed, but `global.NitroModulesProxy` was null!" ) ;
const ModuleNotFoundError = require ( "_callSuper" ) . ModuleNotFoundError ;
const prototype4 = ModuleNotFoundError . prototype ;
const moduleNotFoundError = new ModuleNotFoundError ( error2 ) ;
throw moduleNotFoundError ;
}
}
}
export const NitroModules = tmp3 ;
export const isRuntimeAlive = function isRuntimeAlive ( ) {
return null != globalThis . _ _nitroJsiCache && null != globalThis . _ _nitroDispatcher ;
} ;