You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| context |`loadContext(projectRoot)`| Equivalent to calling `loadConfig()` from `@react-native-community/cli`, but the result is cached for faster subsequent accesses. |
26
-
| context |`loadContextAsync(projectRoot)`| Equivalent to calling `loadConfigAsync()` (with fallback to `loadConfig()`) from `@react-native-community/cli`, but the result is cached for faster subsequent accesses. |
27
-
| context |`resolveCommunityCLI(root, reactNativePath)`| Finds path to `@react-native-community/cli`. |
28
-
| metro |`findMetroPath(projectRoot)`| Finds the installation path of Metro. |
29
-
| metro |`getMetroVersion(projectRoot)`| Returns Metro version number. |
30
-
| metro |`requireModuleFromMetro(moduleName, fromDir)`| Imports specified module starting from the installation directory of the currently used `metro` version. |
31
-
| platform |`expandPlatformExtensions(platform, extensions)`| Returns a list of extensions that should be tried for the target platform in prioritized order. |
32
-
| platform |`getAvailablePlatforms(startDir)`| Returns a map of available React Native platforms. The result is cached. |
33
-
| platform |`getAvailablePlatformsUncached(startDir, platformMap)`| Returns a map of available React Native platforms. The result is NOT cached. |
34
-
| platform |`getModuleSuffixes(platform, appendEmpty)`| Get the module suffixes array for a given platform, suitable for use with TypeScript's moduleSuffixes setting in the form of ['.ios', '.native', ''] or ['.windows', '.win', '.native', ''] or similar |
35
-
| platform |`parsePlatform(val)`| Parse a string to ensure it maps to a valid react-native platform. |
36
-
| platform |`platformExtensions(platform)`| Returns file extensions that can be mapped to the target platform. |
| context |`loadContext(projectRoot)`| Equivalent to calling `loadConfig()` from `@react-native-community/cli`, but the result is cached for faster subsequent accesses. |
26
+
| context |`loadContextAsync(projectRoot)`| Equivalent to calling `loadConfigAsync()` (with fallback to `loadConfig()`) from `@react-native-community/cli`, but the result is cached for faster subsequent accesses. |
27
+
| context |`resolveCommunityCLI(root, reactNativePath)`| Finds path to `@react-native-community/cli`. |
28
+
| metro |`findMetroPath(projectRoot)`| Finds the installation path of Metro. |
29
+
| metro |`getMetroVersion(projectRoot)`| Returns Metro version number. |
30
+
| metro |`requireModuleFromMetro(moduleName, fromDir)`| Imports specified module starting from the installation directory of the currently used `metro` version. |
31
+
| metro-utils |`mergeTransformerConfigs(...configs)`| Merges multiple Metro transformer configurations into one. Properties from later configs override earlier ones. If multiple configs provide a `getTransformOptions` function, the returned config wraps them so that each is called in order and their results are deep-merged. |
32
+
| platform |`expandPlatformExtensions(platform, extensions)`| Returns a list of extensions that should be tried for the target platform in prioritized order. |
33
+
| platform |`getAvailablePlatforms(startDir)`| Returns a map of available React Native platforms. The result is cached. |
34
+
| platform |`getAvailablePlatformsUncached(startDir, platformMap)`| Returns a map of available React Native platforms. The result is NOT cached. |
35
+
| platform |`getModuleSuffixes(platform, appendEmpty)`| Get the module suffixes array for a given platform, suitable for use with TypeScript's moduleSuffixes setting in the form of ['.ios', '.native', ''] or ['.windows', '.win', '.native', ''] or similar |
36
+
| platform |`parsePlatform(val)`| Parse a string to ensure it maps to a valid react-native platform. |
37
+
| platform |`platformExtensions(platform)`| Returns file extensions that can be mapped to the target platform. |
0 commit comments