1.3.5 • Published 4 months ago
@rnx-kit/tools-react-native v1.3.5
@rnx-kit/tools-react-native
@rnx-kit/tools-react-native
is a collection of supplemental react-native
functions and types.
You can import the entire package, or, to save space, import individual categories:
import * as tools from "@rnx-kit/tools-react-native";
// Alternatively...
import * as metroTools from "@rnx-kit/tools-react-native/metro";
import * as platformTools from "@rnx-kit/tools-react-native/platform";
Category | Type Name | Description |
---|---|---|
platform | AllPlatforms | List of supported react-native platforms. |
Category | Function | Description |
---|---|---|
metro | findMetroPath(projectRoot) | Finds the installation path of Metro. |
metro | getMetroVersion(projectRoot) | Returns Metro version number. |
platform | expandPlatformExtensions(platform, extensions) | Returns a list of extensions that should be tried for the target platform in prioritized order. |
platform | getAvailablePlatforms(startDir) | Returns a map of available React Native platforms. The result is cached. |
platform | getAvailablePlatformsUncached(startDir, platformMap) | Returns a map of available React Native platforms. The result is NOT cached. |
platform | parsePlatform(val) | Parse a string to ensure it maps to a valid react-native platform. |
platform | platformExtensions(platform) | Returns file extensions that can be mapped to the target platform. |
1.3.5
4 months ago
1.3.4
7 months ago
1.3.3
8 months ago
1.3.2
9 months ago
1.3.1
1 year ago
1.3.0
1 year ago
1.2.3
1 year ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.10
2 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.2
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.1
3 years ago