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.
@@ -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.4';
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}` : ''}`;
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
24
24
  RCTVersionMajor: @(0),
25
25
  RCTVersionMinor: @(88),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"rc.4",
27
+ RCTVersionPrerelease: @"rc.6",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.88.0-rc.4
1
+ VERSION_NAME=0.88.0-rc.6
2
2
  react.internal.publishingGroup=com.facebook.react
3
3
  react.internal.hermesPublishingGroup=com.facebook.hermes
4
4
 
@@ -15,6 +15,6 @@ public object ReactNativeVersion {
15
15
  "major" to 0,
16
16
  "minor" to 88,
17
17
  "patch" to 0,
18
- "prerelease" to "rc.4"
18
+ "prerelease" to "rc.6"
19
19
  )
20
20
  }
@@ -22,7 +22,7 @@ struct ReactNativeVersionType {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 88;
24
24
  int32_t Patch = 0;
25
- std::string_view Prerelease = "rc.4";
25
+ std::string_view Prerelease = "rc.6";
26
26
  };
27
27
 
28
28
  constexpr ReactNativeVersionType ReactNativeVersion;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.88.0-rc.4",
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.4",
158
- "@react-native/codegen": "0.88.0-rc.4",
159
- "@react-native/community-cli-plugin": "0.88.0-rc.4",
160
- "@react-native/gradle-plugin": "0.88.0-rc.4",
161
- "@react-native/normalize-colors": "0.88.0-rc.4",
162
- "@react-native/virtualized-lists": "0.88.0-rc.4",
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;