@nx/expo
Version:
42 lines (41 loc) • 1.42 kB
TypeScript
import type { Tree } from 'nx/src/generators/tree';
export type ExpoDependenciesVersions = {
expo: string;
expoSplashScreen: string;
expoStatusBar: string;
expoSystemUi: string;
expoCli: string;
babelPresetExpo: string;
expoMetroConfig: string;
expoMetroRuntime: string;
jestExpo: string;
react: string;
reactDom: string;
typesReact: string;
reactNative: string;
metro: string;
reactNativeWeb: string;
reactNativeSvgTransformer: string;
reactNativeSvg: string;
testingLibraryReactNative: string;
reactTestRenderer: string;
babelRuntime: string;
};
/**
* Get the appropriate dependency versions based on the installed Expo version.
* Returns v53 or v54 versions when those are detected, otherwise v55 (latest).
*/
export declare function getExpoDependenciesVersionsToInstall(tree: Tree): Promise<ExpoDependenciesVersions>;
/**
* Check if the workspace is using Expo v53 — the only SDK that still needs the
* legacy Jest resolver. SDK 54+ use the winter-runtime mock instead.
*/
export declare function isExpoV53(tree: Tree): Promise<boolean>;
/**
* Get the installed Expo version from package.json.
*/
export declare function getInstalledExpoVersion(tree: Tree): string | null;
/**
* Get the installed Expo version from the project graph.
*/
export declare function getInstalledExpoVersionFromGraph(): Promise<string | undefined>;