react-native 0.88.0-rc.4 → 0.88.0-rc.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/React/Base/RCTVersion.m +1 -1
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/package.json +7 -7
- package/types_DEPRECATED/index.d.ts +1 -0
- package/types_DEPRECATED/src/private/assets/AssetRegistry.d.ts +44 -0
|
@@ -29,7 +29,7 @@ export default class ReactNativeVersion {
|
|
|
29
29
|
static major: number = 0;
|
|
30
30
|
static minor: number = 88;
|
|
31
31
|
static patch: number = 0;
|
|
32
|
-
static prerelease: string | null = 'rc.
|
|
32
|
+
static prerelease: string | null = 'rc.6';
|
|
33
33
|
|
|
34
34
|
static getVersionString(): string {
|
|
35
35
|
return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
|
package/React/Base/RCTVersion.m
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.88.0-rc.
|
|
3
|
+
"version": "0.88.0-rc.6",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -154,12 +154,12 @@
|
|
|
154
154
|
}
|
|
155
155
|
},
|
|
156
156
|
"dependencies": {
|
|
157
|
-
"@react-native/asset-utils": "0.88.0-rc.
|
|
158
|
-
"@react-native/codegen": "0.88.0-rc.
|
|
159
|
-
"@react-native/community-cli-plugin": "0.88.0-rc.
|
|
160
|
-
"@react-native/gradle-plugin": "0.88.0-rc.
|
|
161
|
-
"@react-native/normalize-colors": "0.88.0-rc.
|
|
162
|
-
"@react-native/virtualized-lists": "0.88.0-rc.
|
|
157
|
+
"@react-native/asset-utils": "0.88.0-rc.6",
|
|
158
|
+
"@react-native/codegen": "0.88.0-rc.6",
|
|
159
|
+
"@react-native/community-cli-plugin": "0.88.0-rc.6",
|
|
160
|
+
"@react-native/gradle-plugin": "0.88.0-rc.6",
|
|
161
|
+
"@react-native/normalize-colors": "0.88.0-rc.6",
|
|
162
|
+
"@react-native/virtualized-lists": "0.88.0-rc.6",
|
|
163
163
|
"anser": "^1.4.9",
|
|
164
164
|
"ansi-regex": "^5.0.0",
|
|
165
165
|
"flow-parser": "0.327.0",
|
|
@@ -144,6 +144,7 @@ export * as CodegenTypes from './Libraries/Types/CodegenTypesNamespace';
|
|
|
144
144
|
export * from './Libraries/Types/CoreEventTypes';
|
|
145
145
|
export * from './Libraries/Utilities/Appearance';
|
|
146
146
|
export * from './Libraries/Utilities/BackHandler';
|
|
147
|
+
export * from './src/private/assets/AssetRegistry';
|
|
147
148
|
export * from './src/private/devsupport/devmenu/DevMenu';
|
|
148
149
|
export * from './Libraries/Utilities/DevSettings';
|
|
149
150
|
export * from './Libraries/Utilities/Dimensions';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
* @format
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export type AssetDestPathResolver = 'android' | 'generic';
|
|
11
|
+
|
|
12
|
+
export interface PackagerAsset {
|
|
13
|
+
readonly __packager_asset: boolean;
|
|
14
|
+
readonly fileSystemLocation: string;
|
|
15
|
+
readonly httpServerLocation: string;
|
|
16
|
+
readonly width: number | null | undefined;
|
|
17
|
+
readonly height: number | null | undefined;
|
|
18
|
+
readonly scales: number[];
|
|
19
|
+
readonly hash: string;
|
|
20
|
+
readonly name: string;
|
|
21
|
+
readonly type: string;
|
|
22
|
+
readonly resolver?: AssetDestPathResolver | undefined;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Runtime registry that maps asset IDs generated in a Metro bundle to asset
|
|
27
|
+
* metadata. It backs `<Image>`, `Image.resolveAssetSource()`, and any code
|
|
28
|
+
* that resolves `require('./img.png')` on native.
|
|
29
|
+
*
|
|
30
|
+
* Most apps do not use this directly — assets are handled through `<Image>`.
|
|
31
|
+
*/
|
|
32
|
+
export interface AssetRegistry {
|
|
33
|
+
/**
|
|
34
|
+
* Register an asset. Returns the asset ID.
|
|
35
|
+
*/
|
|
36
|
+
registerAsset(asset: PackagerAsset): number;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Retrieve a registered asset by ID.
|
|
40
|
+
*/
|
|
41
|
+
getAssetByID(assetId: number): PackagerAsset;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export declare const AssetRegistry: AssetRegistry;
|