react-native 0.83.0-nightly-20251012-6f482708b → 0.83.0-nightly-20251013-f4e93df55

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 = 83;
31
31
  static patch: number = 0;
32
- static prerelease: string | null = 'nightly-20251012-6f482708b';
32
+ static prerelease: string | null = 'nightly-20251013-f4e93df55';
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: @(83),
26
26
  RCTVersionPatch: @(0),
27
- RCTVersionPrerelease: @"nightly-20251012-6f482708b",
27
+ RCTVersionPrerelease: @"nightly-20251013-f4e93df55",
28
28
  };
29
29
  });
30
30
  return __rnVersion;
@@ -11,4 +11,6 @@
11
11
 
12
12
  @interface RCTDeviceInfo : NSObject <RCTBridgeModule>
13
13
 
14
+ - (instancetype)initWithDimensionsProvider:(NSDictionary * (^)(void))dimensionsProvider;
15
+
14
16
  @end
@@ -32,6 +32,7 @@ using namespace facebook::react;
32
32
  NSDictionary *_constants;
33
33
 
34
34
  __weak UIWindow *_applicationWindow;
35
+ NSDictionary * (^_dimensionsProvider)(void);
35
36
  }
36
37
 
37
38
  static NSString *const kFrameKeyPath = @"frame";
@@ -49,6 +50,14 @@ RCT_EXPORT_MODULE()
49
50
  return self;
50
51
  }
51
52
 
53
+ - (instancetype)initWithDimensionsProvider:(NSDictionary * (^)(void))dimensionsProvider
54
+ {
55
+ if (self = [self init]) {
56
+ _dimensionsProvider = dimensionsProvider;
57
+ }
58
+ return self;
59
+ }
60
+
52
61
  - (void)observeValueForKeyPath:(NSString *)keyPath
53
62
  ofObject:(id)object
54
63
  change:(NSDictionary *)change
@@ -199,6 +208,15 @@ static NSDictionary *RCTExportedDimensions(CGFloat fontScale)
199
208
 
200
209
  - (NSDictionary *)_exportedDimensions
201
210
  {
211
+ // if a window size provider has been set, use that. If nil is returned from the provider
212
+ // it will fall back to the default behavior.
213
+ if (_dimensionsProvider != nil) {
214
+ auto dimensions = _dimensionsProvider();
215
+ if (dimensions != nil) {
216
+ return dimensions;
217
+ }
218
+ }
219
+
202
220
  RCTAssert(!_invalidated, @"Failed to get exported dimensions: RCTDeviceInfo has been invalidated");
203
221
  RCTAssert(_moduleRegistry, @"Failed to get exported dimensions: RCTModuleRegistry is nil");
204
222
  RCTAccessibilityManager *accessibilityManager =
@@ -1,4 +1,4 @@
1
- VERSION_NAME=0.83.0-nightly-20251012-6f482708b
1
+ VERSION_NAME=0.83.0-nightly-20251013-f4e93df55
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 83,
17
17
  "patch" to 0,
18
- "prerelease" to "nightly-20251012-6f482708b"
18
+ "prerelease" to "nightly-20251013-f4e93df55"
19
19
  )
20
20
  }
@@ -22,7 +22,7 @@ constexpr struct {
22
22
  int32_t Major = 0;
23
23
  int32_t Minor = 83;
24
24
  int32_t Patch = 0;
25
- std::string_view Prerelease = "nightly-20251012-6f482708b";
25
+ std::string_view Prerelease = "nightly-20251013-f4e93df55";
26
26
  } ReactNativeVersion;
27
27
 
28
28
  } // namespace facebook::react
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native",
3
- "version": "0.83.0-nightly-20251012-6f482708b",
3
+ "version": "0.83.0-nightly-20251013-f4e93df55",
4
4
  "description": "A framework for building native apps using React",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -159,13 +159,13 @@
159
159
  },
160
160
  "dependencies": {
161
161
  "@jest/create-cache-key-function": "^29.7.0",
162
- "@react-native/assets-registry": "0.83.0-nightly-20251012-6f482708b",
163
- "@react-native/codegen": "0.83.0-nightly-20251012-6f482708b",
164
- "@react-native/community-cli-plugin": "0.83.0-nightly-20251012-6f482708b",
165
- "@react-native/gradle-plugin": "0.83.0-nightly-20251012-6f482708b",
166
- "@react-native/js-polyfills": "0.83.0-nightly-20251012-6f482708b",
167
- "@react-native/normalize-colors": "0.83.0-nightly-20251012-6f482708b",
168
- "@react-native/virtualized-lists": "0.83.0-nightly-20251012-6f482708b",
162
+ "@react-native/assets-registry": "0.83.0-nightly-20251013-f4e93df55",
163
+ "@react-native/codegen": "0.83.0-nightly-20251013-f4e93df55",
164
+ "@react-native/community-cli-plugin": "0.83.0-nightly-20251013-f4e93df55",
165
+ "@react-native/gradle-plugin": "0.83.0-nightly-20251013-f4e93df55",
166
+ "@react-native/js-polyfills": "0.83.0-nightly-20251013-f4e93df55",
167
+ "@react-native/normalize-colors": "0.83.0-nightly-20251013-f4e93df55",
168
+ "@react-native/virtualized-lists": "0.83.0-nightly-20251013-f4e93df55",
169
169
  "abort-controller": "^3.0.0",
170
170
  "anser": "^1.4.9",
171
171
  "ansi-regex": "^5.0.0",
Binary file
Binary file
Binary file