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
* add additional platform helpers to tools-react-native
* docs(changeset): Add additional platform helpers for react-native related to platform names and suffixes
* update readme file for tools-react-native
* add visionos as a valid platform in tools-react-native
* remove package lookup table and supporting functions, will do this another way
* update readme
* rename parsePlatformValue to tryParsePlatform
| context |`loadContext(projectRoot)`| Equivalent to calling `loadConfig()` from `@react-native-community/cli`, but the result is cached for faster subsequent accesses. |
30
-
| 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. |
31
-
| context |`resolveCommunityCLI(root, reactNativePath)`| Finds path to `@react-native-community/cli`. |
32
-
| metro |`findMetroPath(projectRoot)`| Finds the installation path of Metro. |
33
-
| metro |`getMetroVersion(projectRoot)`| Returns Metro version number. |
34
-
| metro |`requireModuleFromMetro(moduleName, fromDir)`| Imports specified module starting from the installation directory of the currently used `metro` version. |
35
-
| platform |`expandPlatformExtensions(platform, extensions)`| Returns a list of extensions that should be tried for the target platform in prioritized order. |
36
-
| platform |`getAvailablePlatforms(startDir)`| Returns a map of available React Native platforms. The result is cached. |
37
-
| platform |`getAvailablePlatformsUncached(startDir, platformMap)`| Returns a map of available React Native platforms. The result is NOT cached. |
38
-
| platform |`parsePlatform(val)`| Parse a string to ensure it maps to a valid react-native platform. |
39
-
| 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. |
30
+
| 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. |
31
+
| context |`resolveCommunityCLI(root, reactNativePath)`| Finds path to `@react-native-community/cli`. |
32
+
| metro |`findMetroPath(projectRoot)`| Finds the installation path of Metro. |
33
+
| metro |`getMetroVersion(projectRoot)`| Returns Metro version number. |
34
+
| metro |`requireModuleFromMetro(moduleName, fromDir)`| Imports specified module starting from the installation directory of the currently used `metro` version. |
35
+
| platform |`expandPlatformExtensions(platform, extensions)`| Returns a list of extensions that should be tried for the target platform in prioritized order. |
36
+
| platform |`getAvailablePlatforms(startDir)`| Returns a map of available React Native platforms. The result is cached. |
37
+
| platform |`getAvailablePlatformsUncached(startDir, platformMap)`| Returns a map of available React Native platforms. The result is NOT cached. |
38
+
| 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 |
39
+
| platform |`parsePlatform(val)`| Parse a string to ensure it maps to a valid react-native platform. |
40
+
| platform |`platformExtensions(platform)`| Returns file extensions that can be mapped to the target platform. |
0 commit comments