react-native-screens 4.20.0-nightly-20251217-952b7cd54 → 4.20.0-nightly-20251218-06a5812f7

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.
Files changed (60) hide show
  1. package/ios/RNSScreenStackHeaderSubview.mm +73 -44
  2. package/ios/gamma/stack/{RNSStackController.swift → host/RNSStackController.swift} +5 -5
  3. package/ios/gamma/stack/{RNSScreenStackHostComponentView.h → host/RNSStackHostComponentView.h} +1 -1
  4. package/ios/gamma/stack/{RNSScreenStackHostComponentView.mm → host/RNSStackHostComponentView.mm} +6 -6
  5. package/ios/gamma/stack/{RNSScreenStackHostComponentViewManager.h → host/RNSStackHostComponentViewManager.h} +1 -1
  6. package/ios/gamma/stack/host/RNSStackHostComponentViewManager.mm +7 -0
  7. package/ios/gamma/stack/{RNSStackScreenComponentView.h → screen/RNSStackScreenComponentView.h} +7 -7
  8. package/ios/gamma/stack/{RNSStackScreenComponentView.mm → screen/RNSStackScreenComponentView.mm} +2 -2
  9. package/ios/gamma/stack/{RNSStackScreenController.swift → screen/RNSStackScreenController.swift} +4 -4
  10. package/ios/stubs/RNSGammaStubs.h +1 -1
  11. package/ios/stubs/RNSGammaStubs.mm +1 -1
  12. package/lib/commonjs/components/gamma/stack/StackHost.js +2 -2
  13. package/lib/commonjs/components/gamma/stack/StackHost.js.map +1 -1
  14. package/lib/commonjs/components/gamma/stack/StackHost.web.js +4 -2
  15. package/lib/commonjs/components/gamma/stack/StackHost.web.js.map +1 -1
  16. package/lib/commonjs/components/gamma/stack/StackScreen.js +1 -1
  17. package/lib/commonjs/components/gamma/stack/StackScreen.js.map +1 -1
  18. package/lib/commonjs/fabric/gamma/{ScreenStackHostNativeComponent.js → stack/StackHostNativeComponent.js} +2 -2
  19. package/lib/commonjs/fabric/gamma/stack/StackHostNativeComponent.js.map +1 -0
  20. package/lib/commonjs/fabric/gamma/stack/StackScreenNativeComponent.js.map +1 -0
  21. package/lib/module/components/gamma/stack/StackHost.js +2 -2
  22. package/lib/module/components/gamma/stack/StackHost.js.map +1 -1
  23. package/lib/module/components/gamma/stack/StackHost.web.js +5 -2
  24. package/lib/module/components/gamma/stack/StackHost.web.js.map +1 -1
  25. package/lib/module/components/gamma/stack/StackScreen.js +1 -1
  26. package/lib/module/components/gamma/stack/StackScreen.js.map +1 -1
  27. package/lib/module/fabric/gamma/stack/StackHostNativeComponent.js +5 -0
  28. package/lib/module/fabric/gamma/stack/StackHostNativeComponent.js.map +1 -0
  29. package/lib/module/fabric/gamma/stack/StackScreenNativeComponent.js.map +1 -0
  30. package/lib/typescript/components/gamma/stack/StackHost.d.ts +2 -2
  31. package/lib/typescript/components/gamma/stack/StackHost.d.ts.map +1 -1
  32. package/lib/typescript/components/gamma/stack/StackHost.types.d.ts +1 -1
  33. package/lib/typescript/components/gamma/stack/StackHost.types.d.ts.map +1 -1
  34. package/lib/typescript/components/gamma/stack/StackHost.web.d.ts +2 -2
  35. package/lib/typescript/components/gamma/stack/StackHost.web.d.ts.map +1 -1
  36. package/lib/typescript/fabric/gamma/{ScreenStackHostNativeComponent.d.ts → stack/StackHostNativeComponent.d.ts} +1 -1
  37. package/lib/typescript/fabric/gamma/stack/StackHostNativeComponent.d.ts.map +1 -0
  38. package/lib/typescript/fabric/gamma/stack/StackScreenNativeComponent.d.ts.map +1 -0
  39. package/package.json +4 -4
  40. package/src/components/gamma/stack/StackHost.tsx +5 -5
  41. package/src/components/gamma/stack/StackHost.types.ts +1 -1
  42. package/src/components/gamma/stack/StackHost.web.tsx +3 -2
  43. package/src/components/gamma/stack/StackScreen.tsx +1 -1
  44. package/src/fabric/gamma/{ScreenStackHostNativeComponent.ts → stack/StackHostNativeComponent.ts} +1 -1
  45. package/ios/gamma/stack/RNSScreenStackHostComponentViewManager.mm +0 -7
  46. package/lib/commonjs/fabric/gamma/ScreenStackHostNativeComponent.js.map +0 -1
  47. package/lib/commonjs/fabric/gamma/StackScreenNativeComponent.js.map +0 -1
  48. package/lib/module/fabric/gamma/ScreenStackHostNativeComponent.js +0 -5
  49. package/lib/module/fabric/gamma/ScreenStackHostNativeComponent.js.map +0 -1
  50. package/lib/module/fabric/gamma/StackScreenNativeComponent.js.map +0 -1
  51. package/lib/typescript/fabric/gamma/ScreenStackHostNativeComponent.d.ts.map +0 -1
  52. package/lib/typescript/fabric/gamma/StackScreenNativeComponent.d.ts.map +0 -1
  53. /package/ios/gamma/stack/{RNSStackScreenComponentEventEmitter.h → screen/RNSStackScreenComponentEventEmitter.h} +0 -0
  54. /package/ios/gamma/stack/{RNSStackScreenComponentEventEmitter.mm → screen/RNSStackScreenComponentEventEmitter.mm} +0 -0
  55. /package/ios/gamma/stack/{RNSStackScreenComponentViewManager.h → screen/RNSStackScreenComponentViewManager.h} +0 -0
  56. /package/ios/gamma/stack/{RNSStackScreenComponentViewManager.mm → screen/RNSStackScreenComponentViewManager.mm} +0 -0
  57. /package/lib/commonjs/fabric/gamma/{StackScreenNativeComponent.js → stack/StackScreenNativeComponent.js} +0 -0
  58. /package/lib/module/fabric/gamma/{StackScreenNativeComponent.js → stack/StackScreenNativeComponent.js} +0 -0
  59. /package/lib/typescript/fabric/gamma/{StackScreenNativeComponent.d.ts → stack/StackScreenNativeComponent.d.ts} +0 -0
  60. /package/src/fabric/gamma/{StackScreenNativeComponent.ts → stack/StackScreenNativeComponent.ts} +0 -0
@@ -174,14 +174,17 @@ RNS_IGNORE_SUPER_CALL_BEGIN
174
174
  self);
175
175
  } else {
176
176
  #if RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
177
- BOOL sizeHasChanged = _layoutMetrics.frame.size != layoutMetrics.frame.size;
178
- _layoutMetrics = layoutMetrics;
179
- if (sizeHasChanged) {
180
- [self invalidateIntrinsicContentSize];
181
- }
182
- #else // RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
183
- self.bounds = CGRect{CGPointZero, frame.size};
177
+ if (self.needsAutoLayout) {
178
+ BOOL sizeHasChanged = _layoutMetrics.frame.size != layoutMetrics.frame.size;
179
+ _layoutMetrics = layoutMetrics;
180
+ if (sizeHasChanged) {
181
+ [self invalidateIntrinsicContentSize];
182
+ }
183
+ } else
184
184
  #endif // RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
185
+ {
186
+ self.bounds = CGRect{CGPointZero, frame.size};
187
+ }
185
188
  [self layoutNavigationBar];
186
189
  }
187
190
  }
@@ -206,56 +209,82 @@ RNS_IGNORE_SUPER_CALL_END
206
209
  // makes UINavigationBar the only one to control the position of header content.
207
210
  if (!CGSizeEqualToSize(frame.size, self.frame.size)) {
208
211
  #if RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
209
- _lastReactFrameSize = frame.size;
210
- [self invalidateIntrinsicContentSize];
211
- #else // RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
212
- [super reactSetFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
212
+ if (self.needsAutoLayout) {
213
+ _lastReactFrameSize = frame.size;
214
+ [self invalidateIntrinsicContentSize];
215
+ } else
213
216
  #endif // RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
217
+ {
218
+ [super reactSetFrame:CGRectMake(0, 0, frame.size.width, frame.size.height)];
219
+ }
214
220
  [self layoutNavigationBar];
215
221
  }
216
222
  }
217
223
 
218
224
  #endif // RCT_NEW_ARCH_ENABLED
219
225
 
226
+ #if RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
227
+
228
+ // Starting from iOS 26, to center left and right subviews inside liquid glass backdrop,
229
+ // we need to use auto layout. To make Yoga's layout work with auto layout, we pass information
230
+ // from Yoga via `intrinsicContentSize`.
231
+ - (BOOL)needsAutoLayout
232
+ {
233
+ BOOL needsAutoLayout = NO;
234
+ if (@available(iOS 26.0, *)) {
235
+ needsAutoLayout = _type == RNSScreenStackHeaderSubviewTypeLeft || _type == RNSScreenStackHeaderSubviewTypeRight;
236
+ }
237
+ return needsAutoLayout;
238
+ }
239
+
240
+ #endif // RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
241
+
220
242
  #pragma mark - UIBarButtonItem specific
221
243
 
222
244
  - (UIBarButtonItem *)getUIBarButtonItem
223
245
  {
246
+ RCTAssert(
247
+ _type == RNSScreenStackHeaderSubviewTypeLeft || _type == RNSScreenStackHeaderSubviewTypeRight,
248
+ @"[RNScreens] Unexpected subview type.");
249
+
224
250
  if (_barButtonItem == nil) {
225
251
  #if RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
226
- // Starting from iOS 26, UIBarButtonItem's customView is streched to have at least 36 width.
227
- // Stretching RNSScreenStackHeaderSubview means that its subviews are aligned to left instead
228
- // of the center. To mitigate this, we add a wrapper view that will center
229
- // RNSScreenStackHeaderSubview inside of itself.
230
- UIView *wrapperView = [UIView new];
231
- wrapperView.translatesAutoresizingMaskIntoConstraints = NO;
232
-
233
- self.translatesAutoresizingMaskIntoConstraints = NO;
234
- [wrapperView addSubview:self];
235
-
236
- [self.centerXAnchor constraintEqualToAnchor:wrapperView.centerXAnchor].active = YES;
237
- [self.centerYAnchor constraintEqualToAnchor:wrapperView.centerYAnchor].active = YES;
238
-
239
- // To prevent UIKit from stretching subviews to all available width, we need to:
240
- // 1. Set width of wrapperView to match RNSScreenStackHeaderSubview BUT when
241
- // RNSScreenStackHeaderSubview's width is smaller that minimal required 36 width, it breaks
242
- // UIKit's constraint. That's why we need to lower the priority of the constraint.
243
- NSLayoutConstraint *widthEqual = [wrapperView.widthAnchor constraintEqualToAnchor:self.widthAnchor];
244
- widthEqual.priority = UILayoutPriorityDefaultHigh;
245
- widthEqual.active = YES;
246
-
247
- NSLayoutConstraint *heightEqual = [wrapperView.heightAnchor constraintEqualToAnchor:self.heightAnchor];
248
- heightEqual.priority = UILayoutPriorityDefaultHigh;
249
- heightEqual.active = YES;
250
-
251
- // 2. Set content hugging priority for RNSScreenStackHeaderSubview.
252
- [self setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
253
- [self setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisVertical];
254
-
255
- _barButtonItem = [[UIBarButtonItem alloc] initWithCustomView:wrapperView];
256
- #else // RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
257
- _barButtonItem = [[UIBarButtonItem alloc] initWithCustomView:self];
252
+ if (@available(iOS 26.0, *)) {
253
+ // Starting from iOS 26, UIBarButtonItem's customView is streched to have at least 36 width.
254
+ // Stretching RNSScreenStackHeaderSubview means that its subviews are aligned to left instead
255
+ // of the center. To mitigate this, we add a wrapper view that will center
256
+ // RNSScreenStackHeaderSubview inside of itself.
257
+ UIView *wrapperView = [UIView new];
258
+ wrapperView.translatesAutoresizingMaskIntoConstraints = NO;
259
+
260
+ self.translatesAutoresizingMaskIntoConstraints = NO;
261
+ [wrapperView addSubview:self];
262
+
263
+ [self.centerXAnchor constraintEqualToAnchor:wrapperView.centerXAnchor].active = YES;
264
+ [self.centerYAnchor constraintEqualToAnchor:wrapperView.centerYAnchor].active = YES;
265
+
266
+ // To prevent UIKit from stretching subviews to all available width, we need to:
267
+ // 1. Set width of wrapperView to match RNSScreenStackHeaderSubview BUT when
268
+ // RNSScreenStackHeaderSubview's width is smaller that minimal required 36 width, it breaks
269
+ // UIKit's constraint. That's why we need to lower the priority of the constraint.
270
+ NSLayoutConstraint *widthEqual = [wrapperView.widthAnchor constraintEqualToAnchor:self.widthAnchor];
271
+ widthEqual.priority = UILayoutPriorityDefaultHigh;
272
+ widthEqual.active = YES;
273
+
274
+ NSLayoutConstraint *heightEqual = [wrapperView.heightAnchor constraintEqualToAnchor:self.heightAnchor];
275
+ heightEqual.priority = UILayoutPriorityDefaultHigh;
276
+ heightEqual.active = YES;
277
+
278
+ // 2. Set content hugging priority for RNSScreenStackHeaderSubview.
279
+ [self setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisHorizontal];
280
+ [self setContentHuggingPriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisVertical];
281
+
282
+ _barButtonItem = [[UIBarButtonItem alloc] initWithCustomView:wrapperView];
283
+ } else
258
284
  #endif // RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
285
+ {
286
+ _barButtonItem = [[UIBarButtonItem alloc] initWithCustomView:self];
287
+ }
259
288
  [self configureBarButtonItem];
260
289
  }
261
290
 
@@ -281,7 +310,7 @@ RNS_IGNORE_SUPER_CALL_END
281
310
  [_barButtonItem setHidesSharedBackground:_hidesSharedBackground];
282
311
  }
283
312
  }
284
- #endif
313
+ #endif // RNS_IPHONE_OS_VERSION_AVAILABLE(26_0)
285
314
  }
286
315
 
287
316
  - (void)setHidesSharedBackground:(BOOL)hidesSharedBackground
@@ -4,10 +4,10 @@ import UIKit
4
4
  @objc
5
5
  public class RNSStackController: UINavigationController, ReactMountingTransactionObserving {
6
6
  private var needsChildViewControllersUpdate = false
7
- private let screenStackHostComponentView: RNSScreenStackHostComponentView
7
+ private let stackHostComponentView: RNSStackHostComponentView
8
8
 
9
- @objc public required init(stackHostComponentView: RNSScreenStackHostComponentView) {
10
- self.screenStackHostComponentView = stackHostComponentView
9
+ @objc public required init(stackHostComponentView: RNSStackHostComponentView) {
10
+ self.stackHostComponentView = stackHostComponentView
11
11
  super.init(nibName: nil, bundle: nil)
12
12
  }
13
13
 
@@ -38,7 +38,7 @@ public class RNSStackController: UINavigationController, ReactMountingTransactio
38
38
  "[RNScreens] Child view controller must be invalidated when update is forced!")
39
39
 
40
40
  let activeControllers = sourceAllViewControllers()
41
- .filter { screenCtrl in screenCtrl.screenStackComponentView.maxLifecycleState == .attached }
41
+ .filter { screenCtrl in screenCtrl.screen.maxLifecycleState == .attached }
42
42
 
43
43
  setViewControllers(activeControllers, animated: true)
44
44
 
@@ -47,7 +47,7 @@ public class RNSStackController: UINavigationController, ReactMountingTransactio
47
47
 
48
48
  private func sourceAllViewControllers() -> [RNSStackScreenController] {
49
49
  let screenStackComponents =
50
- screenStackHostComponentView.reactSubviews() as! [RNSStackScreenComponentView]
50
+ stackHostComponentView.reactSubviews() as! [RNSStackScreenComponentView]
51
51
  return screenStackComponents.lazy.map(\.controller)
52
52
  }
53
53
 
@@ -7,7 +7,7 @@
7
7
 
8
8
  NS_ASSUME_NONNULL_BEGIN
9
9
 
10
- @interface RNSScreenStackHostComponentView : RNSReactBaseView
10
+ @interface RNSStackHostComponentView : RNSReactBaseView
11
11
 
12
12
  @property (nonatomic, nonnull, strong, readonly) RNSStackController *stackController;
13
13
 
@@ -1,4 +1,4 @@
1
- #import "RNSScreenStackHostComponentView.h"
1
+ #import "RNSStackHostComponentView.h"
2
2
 
3
3
  #import <React/RCTConversions.h>
4
4
  #import <React/RCTMountingTransactionObserving.h>
@@ -13,10 +13,10 @@
13
13
 
14
14
  namespace react = facebook::react;
15
15
 
16
- @interface RNSScreenStackHostComponentView () <RCTMountingTransactionObserving>
16
+ @interface RNSStackHostComponentView () <RCTMountingTransactionObserving>
17
17
  @end
18
18
 
19
- @implementation RNSScreenStackHostComponentView {
19
+ @implementation RNSStackHostComponentView {
20
20
  RNSStackController *_Nonnull _controller;
21
21
  NSMutableArray<RNSStackScreenComponentView *> *_Nonnull _reactSubviews;
22
22
 
@@ -107,7 +107,7 @@ RNS_IGNORE_SUPER_CALL_END
107
107
 
108
108
  + (react::ComponentDescriptorProvider)componentDescriptorProvider
109
109
  {
110
- return react::concreteComponentDescriptorProvider<react::RNSScreenStackHostComponentDescriptor>();
110
+ return react::concreteComponentDescriptorProvider<react::RNSStackHostComponentDescriptor>();
111
111
  }
112
112
 
113
113
  + (BOOL)shouldBeRecycled
@@ -137,7 +137,7 @@ RNS_IGNORE_SUPER_CALL_END
137
137
 
138
138
  @end
139
139
 
140
- Class<RCTComponentViewProtocol> RNSScreenStackHostCls(void)
140
+ Class<RCTComponentViewProtocol> RNSStackHostCls(void)
141
141
  {
142
- return RNSScreenStackHostComponentView.class;
142
+ return RNSStackHostComponentView.class;
143
143
  }
@@ -4,7 +4,7 @@
4
4
 
5
5
  NS_ASSUME_NONNULL_BEGIN
6
6
 
7
- @interface RNSScreenStackHostComponentViewManager : RCTViewManager
7
+ @interface RNSStackHostComponentViewManager : RCTViewManager
8
8
 
9
9
  @end
10
10
 
@@ -0,0 +1,7 @@
1
+ #import "RNSStackHostComponentViewManager.h"
2
+
3
+ @implementation RNSStackHostComponentViewManager
4
+
5
+ RCT_EXPORT_MODULE(RNSStackHostViewManager)
6
+
7
+ @end
@@ -6,21 +6,21 @@
6
6
  NS_ASSUME_NONNULL_BEGIN
7
7
 
8
8
  @class RNSStackScreenController;
9
- @class RNSScreenStackHostComponentView;
9
+ @class RNSStackHostComponentView;
10
10
 
11
- typedef NS_ENUM(int, RNSScreenStackLifecycleState) {
12
- RNSScreenStackLifecycleInitial = 0,
13
- RNSScreenStackLifecycleDetached = 1,
14
- RNSScreenStackLifecycleAttached = 2,
11
+ typedef NS_ENUM(int, RNSStackScreenLifecycleState) {
12
+ RNSStackScreenLifecycleInitial = 0,
13
+ RNSStackScreenLifecycleDetached = 1,
14
+ RNSStackScreenLifecycleAttached = 2,
15
15
  };
16
16
 
17
17
  @interface RNSStackScreenComponentView : RNSReactBaseView
18
18
 
19
- @property (nonatomic, weak, readwrite, nullable) RNSScreenStackHostComponentView *stackHost;
19
+ @property (nonatomic, weak, readwrite, nullable) RNSStackHostComponentView *stackHost;
20
20
  @property (nonatomic, strong, readonly, nonnull) RNSStackScreenController *controller;
21
21
 
22
22
  @property (nonatomic, strong, readonly, nullable) NSString *screenKey;
23
- @property (nonatomic, readonly) RNSScreenStackLifecycleState maxLifecycleState;
23
+ @property (nonatomic, readonly) RNSStackScreenLifecycleState maxLifecycleState;
24
24
 
25
25
  @end
26
26
 
@@ -49,7 +49,7 @@ namespace react = facebook::react;
49
49
 
50
50
  // container state
51
51
  _screenKey = nil;
52
- _maxLifecycleState = RNSScreenStackLifecycleInitial;
52
+ _maxLifecycleState = RNSStackScreenLifecycleInitial;
53
53
  }
54
54
 
55
55
  - (void)setupController
@@ -87,7 +87,7 @@ namespace react = facebook::react;
87
87
  const auto &newComponentProps = *std::static_pointer_cast<const react::RNSStackScreenProps>(props);
88
88
 
89
89
  if (oldComponentProps.maxLifecycleState != newComponentProps.maxLifecycleState) {
90
- _maxLifecycleState = static_cast<RNSScreenStackLifecycleState>(newComponentProps.maxLifecycleState);
90
+ _maxLifecycleState = static_cast<RNSStackScreenLifecycleState>(newComponentProps.maxLifecycleState);
91
91
  _needsLifecycleStateUpdate = YES;
92
92
  }
93
93
 
@@ -3,13 +3,13 @@ import UIKit
3
3
 
4
4
  @objc
5
5
  public class RNSStackScreenController: UIViewController {
6
- let screenStackComponentView: RNSStackScreenComponentView
6
+ let screen: RNSStackScreenComponentView
7
7
  private var reactEventEmitter: RNSStackScreenComponentEventEmitter {
8
- return screenStackComponentView.reactEventEmitter()
8
+ return screen.reactEventEmitter()
9
9
  }
10
10
 
11
11
  @objc public required init(componentView: RNSStackScreenComponentView) {
12
- self.screenStackComponentView = componentView
12
+ self.screen = componentView
13
13
  super.init(nibName: nil, bundle: nil)
14
14
  }
15
15
 
@@ -22,7 +22,7 @@ public class RNSStackScreenController: UIViewController {
22
22
  return navCtrl as? RNSStackController
23
23
  }
24
24
 
25
- if let stackHost = self.screenStackComponentView.stackHost {
25
+ if let stackHost = self.screen.stackHost {
26
26
  return stackHost.stackController
27
27
  }
28
28
 
@@ -9,7 +9,7 @@
9
9
 
10
10
  NS_ASSUME_NONNULL_BEGIN
11
11
 
12
- @interface RNSScreenStackHostComponentView : NSObject
12
+ @interface RNSStackHostComponentView : NSObject
13
13
  @end
14
14
 
15
15
  @interface RNSStackScreenComponentView : NSObject
@@ -1,6 +1,6 @@
1
1
  #import "RNSGammaStubs.h"
2
2
 
3
- @implementation RNSScreenStackHostComponentView
3
+ @implementation RNSStackHostComponentView
4
4
  @end
5
5
 
6
6
  @implementation RNSStackScreenComponentView
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _ScreenStackHostNativeComponent = _interopRequireDefault(require("../../../fabric/gamma/ScreenStackHostNativeComponent"));
9
+ var _StackHostNativeComponent = _interopRequireDefault(require("../../../fabric/gamma/stack/StackHostNativeComponent"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  /**
12
12
  * EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
@@ -14,7 +14,7 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
14
14
  function StackHost({
15
15
  children
16
16
  }) {
17
- return /*#__PURE__*/_react.default.createElement(_ScreenStackHostNativeComponent.default, {
17
+ return /*#__PURE__*/_react.default.createElement(_StackHostNativeComponent.default, {
18
18
  style: styles.container
19
19
  }, children);
20
20
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_ScreenStackHostNativeComponent","e","__esModule","default","StackHost","children","createElement","style","styles","container","StyleSheet","create","flex","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackHost.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,+BAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAkG,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAGlG;AACA;AACA;AACA,SAASG,SAASA,CAAC;EAAEC;AAA+B,CAAC,EAAE;EACrD,oBACET,MAAA,CAAAO,OAAA,CAAAG,aAAA,CAACN,+BAAA,CAAAG,OAA8B;IAACI,KAAK,EAAEC,MAAM,CAACC;EAAU,GACrDJ,QAC6B,CAAC;AAErC;AAEA,MAAMG,MAAM,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAX,OAAA,GAEYC,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_StackHostNativeComponent","e","__esModule","default","StackHost","children","createElement","style","styles","container","StyleSheet","create","flex","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackHost.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA4F,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAG5F;AACA;AACA;AACA,SAASG,SAASA,CAAC;EAAEC;AAAyB,CAAC,EAAE;EAC/C,oBACET,MAAA,CAAAO,OAAA,CAAAG,aAAA,CAACN,yBAAA,CAAAG,OAAwB;IAACI,KAAK,EAAEC,MAAM,CAACC;EAAU,GAC/CJ,QACuB,CAAC;AAE/B;AAEA,MAAMG,MAAM,GAAGE,uBAAU,CAACC,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAX,OAAA,GAEYC,SAAS","ignoreList":[]}
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _reactNative = require("react-native");
8
- const ScreenStackHost = _reactNative.View;
9
- var _default = exports.default = ScreenStackHost;
8
+ // TODO: Determine what this type is & whether it should not be removed
9
+
10
+ const StackHost = _reactNative.View;
11
+ var _default = exports.default = StackHost;
10
12
  //# sourceMappingURL=StackHost.web.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","ScreenStackHost","View","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackHost.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA,MAAMC,eAAe,GAAGC,iBAAI;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEdJ,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","StackHost","View","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackHost.web.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA;;AAGA,MAAMC,SAAS,GAAGC,iBAAI;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAERJ,SAAS","ignoreList":[]}
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = exports.StackScreenLifecycleState = void 0;
7
7
  var _react = _interopRequireDefault(require("react"));
8
8
  var _reactNative = require("react-native");
9
- var _StackScreenNativeComponent = _interopRequireDefault(require("../../../fabric/gamma/StackScreenNativeComponent"));
9
+ var _StackScreenNativeComponent = _interopRequireDefault(require("../../../fabric/gamma/stack/StackScreenNativeComponent"));
10
10
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
11
11
  const StackScreenLifecycleState = exports.StackScreenLifecycleState = {
12
12
  INITIAL: 0,
@@ -1 +1 @@
1
- {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_StackScreenNativeComponent","e","__esModule","default","StackScreenLifecycleState","exports","INITIAL","DETACHED","ATTACHED","StackScreen","children","maxLifecycleState","screenKey","onWillAppear","onWillDisappear","onDidAppear","onDidDisappear","onPop","handleOnDidDisappear","React","useCallback","createElement","style","StyleSheet","absoluteFill","_default"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA0F,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAInF,MAAMG,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG;EACvCE,OAAO,EAAE,CAAC;EACVC,QAAQ,EAAE,CAAC;EACXC,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;AACA,SAASC,WAAWA,CAAC;EACnBC,QAAQ;EACR;EACAC,iBAAiB;EACjBC,SAAS;EACT;EACAC,YAAY;EACZC,eAAe;EACfC,WAAW;EACXC,cAAc;EACd;EACAC;AACgB,CAAC,EAAE;EACnB,MAAMC,oBAAoB,GAAGC,cAAK,CAACC,WAAW,CAC3CnB,CAA8C,IAAK;IAClDe,cAAc,GAAGf,CAAC,CAAC;IACnBgB,KAAK,GAAGL,SAAS,CAAC;EACpB,CAAC,EACD,CAACI,cAAc,EAAEC,KAAK,EAAEL,SAAS,CACnC,CAAC;EAED,oBACEhB,MAAA,CAAAO,OAAA,CAAAkB,aAAA,CAACrB,2BAAA,CAAAG,OAA0B;IACzBmB,KAAK,EAAEC,uBAAU,CAACC;IAClB;IAAA;IACAb,iBAAiB,EAAEA,iBAAkB;IACrCC,SAAS,EAAEA;IACX;IAAA;IACAC,YAAY,EAAEA,YAAa;IAC3BE,WAAW,EAAEA,WAAY;IACzBD,eAAe,EAAEA,eAAgB;IACjCE,cAAc,EAAEE;EAAqB,GACpCR,QACyB,CAAC;AAEjC;AAAC,IAAAe,QAAA,GAAApB,OAAA,CAAAF,OAAA,GAEcM,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_StackScreenNativeComponent","e","__esModule","default","StackScreenLifecycleState","exports","INITIAL","DETACHED","ATTACHED","StackScreen","children","maxLifecycleState","screenKey","onWillAppear","onWillDisappear","onDidAppear","onDidDisappear","onPop","handleOnDidDisappear","React","useCallback","createElement","style","StyleSheet","absoluteFill","_default"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,2BAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAgG,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAIzF,MAAMG,yBAAyB,GAAAC,OAAA,CAAAD,yBAAA,GAAG;EACvCE,OAAO,EAAE,CAAC;EACVC,QAAQ,EAAE,CAAC;EACXC,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;AACA,SAASC,WAAWA,CAAC;EACnBC,QAAQ;EACR;EACAC,iBAAiB;EACjBC,SAAS;EACT;EACAC,YAAY;EACZC,eAAe;EACfC,WAAW;EACXC,cAAc;EACd;EACAC;AACgB,CAAC,EAAE;EACnB,MAAMC,oBAAoB,GAAGC,cAAK,CAACC,WAAW,CAC3CnB,CAA8C,IAAK;IAClDe,cAAc,GAAGf,CAAC,CAAC;IACnBgB,KAAK,GAAGL,SAAS,CAAC;EACpB,CAAC,EACD,CAACI,cAAc,EAAEC,KAAK,EAAEL,SAAS,CACnC,CAAC;EAED,oBACEhB,MAAA,CAAAO,OAAA,CAAAkB,aAAA,CAACrB,2BAAA,CAAAG,OAA0B;IACzBmB,KAAK,EAAEC,uBAAU,CAACC;IAClB;IAAA;IACAb,iBAAiB,EAAEA,iBAAkB;IACrCC,SAAS,EAAEA;IACX;IAAA;IACAC,YAAY,EAAEA,YAAa;IAC3BE,WAAW,EAAEA,WAAY;IACzBD,eAAe,EAAEA,eAAgB;IACjCE,cAAc,EAAEE;EAAqB,GACpCR,QACyB,CAAC;AAEjC;AAAC,IAAAe,QAAA,GAAApB,OAAA,CAAAF,OAAA,GAEcM,WAAW","ignoreList":[]}
@@ -6,5 +6,5 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.default = void 0;
8
8
  var _reactNative = require("react-native");
9
- var _default = exports.default = (0, _reactNative.codegenNativeComponent)('RNSScreenStackHost', {});
10
- //# sourceMappingURL=ScreenStackHostNativeComponent.js.map
9
+ var _default = exports.default = (0, _reactNative.codegenNativeComponent)('RNSStackHost', {});
10
+ //# sourceMappingURL=StackHostNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Object","defineProperty","exports","value","default","_reactNative","require","_default","codegenNativeComponent"],"sourceRoot":"../../../../../src","sources":["fabric/gamma/stack/StackHostNativeComponent.ts"],"mappings":";AAAA,YAAY;;AAACA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,OAAA;AAGb,IAAAC,YAAA,GAAAC,OAAA;AAAsD,IAAAC,QAAA,GAAAL,OAAA,CAAAE,OAAA,GAIvC,IAAAI,mCAAsB,EAAc,cAAc,EAAE,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["Object","defineProperty","exports","value","default","_reactNative","require","_default","codegenNativeComponent"],"sourceRoot":"../../../../../src","sources":["fabric/gamma/stack/StackScreenNativeComponent.ts"],"mappings":";AAAA,YAAY;;AAACA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,OAAA;AAGb,IAAAC,YAAA,GAAAC,OAAA;AAEA;AAAA,IAAAC,QAAA,GAAAL,OAAA,CAAAE,OAAA,GAee,IAAAI,mCAAsB,EAAc,gBAAgB,EAAE,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet } from 'react-native';
3
- import ScreenStackHostNativeComponent from '../../../fabric/gamma/ScreenStackHostNativeComponent';
3
+ import StackHostNativeComponent from '../../../fabric/gamma/stack/StackHostNativeComponent';
4
4
  /**
5
5
  * EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
6
6
  */
7
7
  function StackHost({
8
8
  children
9
9
  }) {
10
- return /*#__PURE__*/React.createElement(ScreenStackHostNativeComponent, {
10
+ return /*#__PURE__*/React.createElement(StackHostNativeComponent, {
11
11
  style: styles.container
12
12
  }, children);
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","ScreenStackHostNativeComponent","StackHost","children","createElement","style","styles","container","create","flex"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackHost.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,8BAA8B,MAAM,sDAAsD;AAGjG;AACA;AACA;AACA,SAASC,SAASA,CAAC;EAAEC;AAA+B,CAAC,EAAE;EACrD,oBACEJ,KAAA,CAAAK,aAAA,CAACH,8BAA8B;IAACI,KAAK,EAAEC,MAAM,CAACC;EAAU,GACrDJ,QAC6B,CAAC;AAErC;AAEA,MAAMG,MAAM,GAAGN,UAAU,CAACQ,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAeP,SAAS","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","StackHostNativeComponent","StackHost","children","createElement","style","styles","container","create","flex"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackHost.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,wBAAwB,MAAM,sDAAsD;AAG3F;AACA;AACA;AACA,SAASC,SAASA,CAAC;EAAEC;AAAyB,CAAC,EAAE;EAC/C,oBACEJ,KAAA,CAAAK,aAAA,CAACH,wBAAwB;IAACI,KAAK,EAAEC,MAAM,CAACC;EAAU,GAC/CJ,QACuB,CAAC;AAE/B;AAEA,MAAMG,MAAM,GAAGN,UAAU,CAACQ,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,IAAI,EAAE;EACR;AACF,CAAC,CAAC;AAEF,eAAeP,SAAS","ignoreList":[]}
@@ -1,4 +1,7 @@
1
1
  import { View } from 'react-native';
2
- const ScreenStackHost = View;
3
- export default ScreenStackHost;
2
+
3
+ // TODO: Determine what this type is & whether it should not be removed
4
+
5
+ const StackHost = View;
6
+ export default StackHost;
4
7
  //# sourceMappingURL=StackHost.web.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["View","ScreenStackHost"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackHost.web.tsx"],"mappings":"AAAA,SAASA,IAAI,QAAmB,cAAc;AAI9C,MAAMC,eAAe,GAAGD,IAAI;AAE5B,eAAeC,eAAe","ignoreList":[]}
1
+ {"version":3,"names":["View","StackHost"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackHost.web.tsx"],"mappings":"AAAA,SAASA,IAAI,QAAmB,cAAc;;AAE9C;;AAGA,MAAMC,SAAS,GAAGD,IAAI;AAEtB,eAAeC,SAAS","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet } from 'react-native';
3
- import StackScreenNativeComponent from '../../../fabric/gamma/StackScreenNativeComponent';
3
+ import StackScreenNativeComponent from '../../../fabric/gamma/stack/StackScreenNativeComponent';
4
4
  export const StackScreenLifecycleState = {
5
5
  INITIAL: 0,
6
6
  DETACHED: 1,
@@ -1 +1 @@
1
- {"version":3,"names":["React","StyleSheet","StackScreenNativeComponent","StackScreenLifecycleState","INITIAL","DETACHED","ATTACHED","StackScreen","children","maxLifecycleState","screenKey","onWillAppear","onWillDisappear","onDidAppear","onDidDisappear","onPop","handleOnDidDisappear","useCallback","e","createElement","style","absoluteFill"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackScreen.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,0BAA0B,MAAM,kDAAkD;AAIzF,OAAO,MAAMC,yBAAyB,GAAG;EACvCC,OAAO,EAAE,CAAC;EACVC,QAAQ,EAAE,CAAC;EACXC,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;AACA,SAASC,WAAWA,CAAC;EACnBC,QAAQ;EACR;EACAC,iBAAiB;EACjBC,SAAS;EACT;EACAC,YAAY;EACZC,eAAe;EACfC,WAAW;EACXC,cAAc;EACd;EACAC;AACgB,CAAC,EAAE;EACnB,MAAMC,oBAAoB,GAAGhB,KAAK,CAACiB,WAAW,CAC3CC,CAA8C,IAAK;IAClDJ,cAAc,GAAGI,CAAC,CAAC;IACnBH,KAAK,GAAGL,SAAS,CAAC;EACpB,CAAC,EACD,CAACI,cAAc,EAAEC,KAAK,EAAEL,SAAS,CACnC,CAAC;EAED,oBACEV,KAAA,CAAAmB,aAAA,CAACjB,0BAA0B;IACzBkB,KAAK,EAAEnB,UAAU,CAACoB;IAClB;IAAA;IACAZ,iBAAiB,EAAEA,iBAAkB;IACrCC,SAAS,EAAEA;IACX;IAAA;IACAC,YAAY,EAAEA,YAAa;IAC3BE,WAAW,EAAEA,WAAY;IACzBD,eAAe,EAAEA,eAAgB;IACjCE,cAAc,EAAEE;EAAqB,GACpCR,QACyB,CAAC;AAEjC;AAEA,eAAeD,WAAW","ignoreList":[]}
1
+ {"version":3,"names":["React","StyleSheet","StackScreenNativeComponent","StackScreenLifecycleState","INITIAL","DETACHED","ATTACHED","StackScreen","children","maxLifecycleState","screenKey","onWillAppear","onWillDisappear","onDidAppear","onDidDisappear","onPop","handleOnDidDisappear","useCallback","e","createElement","style","absoluteFill"],"sourceRoot":"../../../../../src","sources":["components/gamma/stack/StackScreen.tsx"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,cAAc;AACzC,OAAOC,0BAA0B,MAAM,wDAAwD;AAI/F,OAAO,MAAMC,yBAAyB,GAAG;EACvCC,OAAO,EAAE,CAAC;EACVC,QAAQ,EAAE,CAAC;EACXC,QAAQ,EAAE;AACZ,CAAU;;AAEV;AACA;AACA;AACA,SAASC,WAAWA,CAAC;EACnBC,QAAQ;EACR;EACAC,iBAAiB;EACjBC,SAAS;EACT;EACAC,YAAY;EACZC,eAAe;EACfC,WAAW;EACXC,cAAc;EACd;EACAC;AACgB,CAAC,EAAE;EACnB,MAAMC,oBAAoB,GAAGhB,KAAK,CAACiB,WAAW,CAC3CC,CAA8C,IAAK;IAClDJ,cAAc,GAAGI,CAAC,CAAC;IACnBH,KAAK,GAAGL,SAAS,CAAC;EACpB,CAAC,EACD,CAACI,cAAc,EAAEC,KAAK,EAAEL,SAAS,CACnC,CAAC;EAED,oBACEV,KAAA,CAAAmB,aAAA,CAACjB,0BAA0B;IACzBkB,KAAK,EAAEnB,UAAU,CAACoB;IAClB;IAAA;IACAZ,iBAAiB,EAAEA,iBAAkB;IACrCC,SAAS,EAAEA;IACX;IAAA;IACAC,YAAY,EAAEA,YAAa;IAC3BE,WAAW,EAAEA,WAAY;IACzBD,eAAe,EAAEA,eAAgB;IACjCE,cAAc,EAAEE;EAAqB,GACpCR,QACyB,CAAC;AAEjC;AAEA,eAAeD,WAAW","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ 'use client';
2
+
3
+ import { codegenNativeComponent } from 'react-native';
4
+ export default codegenNativeComponent('RNSStackHost', {});
5
+ //# sourceMappingURL=StackHostNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../../../src","sources":["fabric/gamma/stack/StackHostNativeComponent.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,sBAAsB,QAAQ,cAAc;AAIrD,eAAeA,sBAAsB,CAAc,cAAc,EAAE,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../../../src","sources":["fabric/gamma/stack/StackScreenNativeComponent.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,sBAAsB,QAAQ,cAAc;;AAErD;;AAeA,eAAeA,sBAAsB,CAAc,gBAAgB,EAAE,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import type { ScreenStackHostProps } from './StackHost.types';
2
+ import type { StackHostProps } from './StackHost.types';
3
3
  /**
4
4
  * EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
5
5
  */
6
- declare function StackHost({ children }: ScreenStackHostProps): React.JSX.Element;
6
+ declare function StackHost({ children }: StackHostProps): React.JSX.Element;
7
7
  export default StackHost;
8
8
  //# sourceMappingURL=StackHost.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StackHost.d.ts","sourceRoot":"","sources":["../../../../../src/components/gamma/stack/StackHost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D;;GAEG;AACH,iBAAS,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,oBAAoB,qBAMpD;AAQD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"StackHost.d.ts","sourceRoot":"","sources":["../../../../../src/components/gamma/stack/StackHost.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAExD;;GAEG;AACH,iBAAS,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE,cAAc,qBAM9C;AAQD,eAAe,SAAS,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { ViewProps } from 'react-native';
2
- export type ScreenStackHostProps = {
2
+ export type StackHostProps = {
3
3
  children?: ViewProps['children'];
4
4
  };
5
5
  //# sourceMappingURL=StackHost.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StackHost.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/gamma/stack/StackHost.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CAClC,CAAC"}
1
+ {"version":3,"file":"StackHost.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/gamma/stack/StackHost.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;CAClC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { View, ViewProps } from 'react-native';
2
2
  export type ScreenStackNativeProps = ViewProps;
3
- declare const ScreenStackHost: typeof View;
4
- export default ScreenStackHost;
3
+ declare const StackHost: typeof View;
4
+ export default StackHost;
5
5
  //# sourceMappingURL=StackHost.web.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"StackHost.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/gamma/stack/StackHost.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC;AAE/C,QAAA,MAAM,eAAe,aAAO,CAAC;AAE7B,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"StackHost.web.d.ts","sourceRoot":"","sources":["../../../../../src/components/gamma/stack/StackHost.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG/C,MAAM,MAAM,sBAAsB,GAAG,SAAS,CAAC;AAE/C,QAAA,MAAM,SAAS,aAAO,CAAC;AAEvB,eAAe,SAAS,CAAC"}
@@ -3,4 +3,4 @@ export interface NativeProps extends ViewProps {
3
3
  }
4
4
  declare const _default: import("react-native").HostComponent<NativeProps>;
5
5
  export default _default;
6
- //# sourceMappingURL=ScreenStackHostNativeComponent.d.ts.map
6
+ //# sourceMappingURL=StackHostNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackHostNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/fabric/gamma/stack/StackHostNativeComponent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,WAAW,WAAY,SAAQ,SAAS;CAAG;;AAEjD,wBAAuE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StackScreenNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../src/fabric/gamma/stack/StackScreenNativeComponent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIlE,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAE7C,MAAM,WAAW,WAAY,SAAQ,SAAS;IAE5C,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAGlB,YAAY,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IACxD,WAAW,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IACvD,eAAe,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IAC3D,cAAc,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;CAC3D;;AAED,wBAAyE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-screens",
3
- "version": "4.20.0-nightly-20251217-952b7cd54",
3
+ "version": "4.20.0-nightly-20251218-06a5812f7",
4
4
  "description": "Native navigation primitives for your React Native app.",
5
5
  "scripts": {
6
6
  "submodules": "git submodule update --init --recursive && (cd react-navigation && yarn && yarn build && cd ../)",
@@ -165,7 +165,7 @@
165
165
  "ios": {
166
166
  "componentProvider": {
167
167
  "RNSStackScreen": "RNSStackScreenComponentView",
168
- "RNSScreenStackHost": "RNSScreenStackHostComponentView",
168
+ "RNSStackHost": "RNSStackHostComponentView",
169
169
  "RNSBottomTabsScreen": "RNSBottomTabsScreenComponentView",
170
170
  "RNSBottomTabs": "RNSBottomTabsHostComponentView",
171
171
  "RNSBottomTabsAccessory": "RNSBottomTabsAccessoryComponentView",
@@ -222,8 +222,8 @@
222
222
  "RNSStackScreen": {
223
223
  "className": "RNSStackScreenComponentView"
224
224
  },
225
- "RNSScreenStackHost": {
226
- "className": "RNSScreenStackHostComponentView"
225
+ "RNSStackHost": {
226
+ "className": "RNSStackHostComponentView"
227
227
  },
228
228
  "RNSBottomTabsScreen": {
229
229
  "className": "RNSBottomTabsScreenComponentView"
@@ -1,16 +1,16 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet } from 'react-native';
3
- import ScreenStackHostNativeComponent from '../../../fabric/gamma/ScreenStackHostNativeComponent';
4
- import type { ScreenStackHostProps } from './StackHost.types';
3
+ import StackHostNativeComponent from '../../../fabric/gamma/stack/StackHostNativeComponent';
4
+ import type { StackHostProps } from './StackHost.types';
5
5
 
6
6
  /**
7
7
  * EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
8
8
  */
9
- function StackHost({ children }: ScreenStackHostProps) {
9
+ function StackHost({ children }: StackHostProps) {
10
10
  return (
11
- <ScreenStackHostNativeComponent style={styles.container}>
11
+ <StackHostNativeComponent style={styles.container}>
12
12
  {children}
13
- </ScreenStackHostNativeComponent>
13
+ </StackHostNativeComponent>
14
14
  );
15
15
  }
16
16
 
@@ -1,5 +1,5 @@
1
1
  import type { ViewProps } from 'react-native';
2
2
 
3
- export type ScreenStackHostProps = {
3
+ export type StackHostProps = {
4
4
  children?: ViewProps['children'];
5
5
  };
@@ -1,7 +1,8 @@
1
1
  import { View, ViewProps } from 'react-native';
2
2
 
3
+ // TODO: Determine what this type is & whether it should not be removed
3
4
  export type ScreenStackNativeProps = ViewProps;
4
5
 
5
- const ScreenStackHost = View;
6
+ const StackHost = View;
6
7
 
7
- export default ScreenStackHost;
8
+ export default StackHost;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { StyleSheet } from 'react-native';
3
- import StackScreenNativeComponent from '../../../fabric/gamma/StackScreenNativeComponent';
3
+ import StackScreenNativeComponent from '../../../fabric/gamma/stack/StackScreenNativeComponent';
4
4
  import type { NativeSyntheticEvent } from 'react-native';
5
5
  import { StackScreenProps } from './StackScreen.types';
6
6
 
@@ -5,4 +5,4 @@ import { codegenNativeComponent } from 'react-native';
5
5
 
6
6
  export interface NativeProps extends ViewProps {}
7
7
 
8
- export default codegenNativeComponent<NativeProps>('RNSScreenStackHost', {});
8
+ export default codegenNativeComponent<NativeProps>('RNSStackHost', {});
@@ -1,7 +0,0 @@
1
- #import "RNSScreenStackHostComponentViewManager.h"
2
-
3
- @implementation RNSScreenStackHostComponentViewManager
4
-
5
- RCT_EXPORT_MODULE(RNSScreenStackHostViewManager)
6
-
7
- @end
@@ -1 +0,0 @@
1
- {"version":3,"names":["Object","defineProperty","exports","value","default","_reactNative","require","_default","codegenNativeComponent"],"sourceRoot":"../../../../src","sources":["fabric/gamma/ScreenStackHostNativeComponent.ts"],"mappings":";AAAA,YAAY;;AAACA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,OAAA;AAGb,IAAAC,YAAA,GAAAC,OAAA;AAAsD,IAAAC,QAAA,GAAAL,OAAA,CAAAE,OAAA,GAIvC,IAAAI,mCAAsB,EAAc,oBAAoB,EAAE,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["Object","defineProperty","exports","value","default","_reactNative","require","_default","codegenNativeComponent"],"sourceRoot":"../../../../src","sources":["fabric/gamma/StackScreenNativeComponent.ts"],"mappings":";AAAA,YAAY;;AAACA,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,KAAA;AAAA;AAAAD,OAAA,CAAAE,OAAA;AAGb,IAAAC,YAAA,GAAAC,OAAA;AAEA;AAAA,IAAAC,QAAA,GAAAL,OAAA,CAAAE,OAAA,GAee,IAAAI,mCAAsB,EAAc,gBAAgB,EAAE,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1,5 +0,0 @@
1
- 'use client';
2
-
3
- import { codegenNativeComponent } from 'react-native';
4
- export default codegenNativeComponent('RNSScreenStackHost', {});
5
- //# sourceMappingURL=ScreenStackHostNativeComponent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../../src","sources":["fabric/gamma/ScreenStackHostNativeComponent.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,sBAAsB,QAAQ,cAAc;AAIrD,eAAeA,sBAAsB,CAAc,oBAAoB,EAAE,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"names":["codegenNativeComponent"],"sourceRoot":"../../../../src","sources":["fabric/gamma/StackScreenNativeComponent.ts"],"mappings":"AAAA,YAAY;;AAGZ,SAASA,sBAAsB,QAAQ,cAAc;;AAErD;;AAeA,eAAeA,sBAAsB,CAAc,gBAAgB,EAAE,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ScreenStackHostNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/gamma/ScreenStackHostNativeComponent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,MAAM,WAAW,WAAY,SAAQ,SAAS;CAAG;;AAEjD,wBAA6E"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"StackScreenNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/fabric/gamma/StackScreenNativeComponent.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAIlE,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;AAE7C,MAAM,WAAW,WAAY,SAAQ,SAAS;IAE5C,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAGlB,YAAY,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IACxD,WAAW,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IACvD,eAAe,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;IAC3D,cAAc,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;CAC3D;;AAED,wBAAyE"}