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.
- package/ios/RNSScreenStackHeaderSubview.mm +73 -44
- package/ios/gamma/stack/{RNSStackController.swift → host/RNSStackController.swift} +5 -5
- package/ios/gamma/stack/{RNSScreenStackHostComponentView.h → host/RNSStackHostComponentView.h} +1 -1
- package/ios/gamma/stack/{RNSScreenStackHostComponentView.mm → host/RNSStackHostComponentView.mm} +6 -6
- package/ios/gamma/stack/{RNSScreenStackHostComponentViewManager.h → host/RNSStackHostComponentViewManager.h} +1 -1
- package/ios/gamma/stack/host/RNSStackHostComponentViewManager.mm +7 -0
- package/ios/gamma/stack/{RNSStackScreenComponentView.h → screen/RNSStackScreenComponentView.h} +7 -7
- package/ios/gamma/stack/{RNSStackScreenComponentView.mm → screen/RNSStackScreenComponentView.mm} +2 -2
- package/ios/gamma/stack/{RNSStackScreenController.swift → screen/RNSStackScreenController.swift} +4 -4
- package/ios/stubs/RNSGammaStubs.h +1 -1
- package/ios/stubs/RNSGammaStubs.mm +1 -1
- package/lib/commonjs/components/gamma/stack/StackHost.js +2 -2
- package/lib/commonjs/components/gamma/stack/StackHost.js.map +1 -1
- package/lib/commonjs/components/gamma/stack/StackHost.web.js +4 -2
- package/lib/commonjs/components/gamma/stack/StackHost.web.js.map +1 -1
- package/lib/commonjs/components/gamma/stack/StackScreen.js +1 -1
- package/lib/commonjs/components/gamma/stack/StackScreen.js.map +1 -1
- package/lib/commonjs/fabric/gamma/{ScreenStackHostNativeComponent.js → stack/StackHostNativeComponent.js} +2 -2
- package/lib/commonjs/fabric/gamma/stack/StackHostNativeComponent.js.map +1 -0
- package/lib/commonjs/fabric/gamma/stack/StackScreenNativeComponent.js.map +1 -0
- package/lib/module/components/gamma/stack/StackHost.js +2 -2
- package/lib/module/components/gamma/stack/StackHost.js.map +1 -1
- package/lib/module/components/gamma/stack/StackHost.web.js +5 -2
- package/lib/module/components/gamma/stack/StackHost.web.js.map +1 -1
- package/lib/module/components/gamma/stack/StackScreen.js +1 -1
- package/lib/module/components/gamma/stack/StackScreen.js.map +1 -1
- package/lib/module/fabric/gamma/stack/StackHostNativeComponent.js +5 -0
- package/lib/module/fabric/gamma/stack/StackHostNativeComponent.js.map +1 -0
- package/lib/module/fabric/gamma/stack/StackScreenNativeComponent.js.map +1 -0
- package/lib/typescript/components/gamma/stack/StackHost.d.ts +2 -2
- package/lib/typescript/components/gamma/stack/StackHost.d.ts.map +1 -1
- package/lib/typescript/components/gamma/stack/StackHost.types.d.ts +1 -1
- package/lib/typescript/components/gamma/stack/StackHost.types.d.ts.map +1 -1
- package/lib/typescript/components/gamma/stack/StackHost.web.d.ts +2 -2
- package/lib/typescript/components/gamma/stack/StackHost.web.d.ts.map +1 -1
- package/lib/typescript/fabric/gamma/{ScreenStackHostNativeComponent.d.ts → stack/StackHostNativeComponent.d.ts} +1 -1
- package/lib/typescript/fabric/gamma/stack/StackHostNativeComponent.d.ts.map +1 -0
- package/lib/typescript/fabric/gamma/stack/StackScreenNativeComponent.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/components/gamma/stack/StackHost.tsx +5 -5
- package/src/components/gamma/stack/StackHost.types.ts +1 -1
- package/src/components/gamma/stack/StackHost.web.tsx +3 -2
- package/src/components/gamma/stack/StackScreen.tsx +1 -1
- package/src/fabric/gamma/{ScreenStackHostNativeComponent.ts → stack/StackHostNativeComponent.ts} +1 -1
- package/ios/gamma/stack/RNSScreenStackHostComponentViewManager.mm +0 -7
- package/lib/commonjs/fabric/gamma/ScreenStackHostNativeComponent.js.map +0 -1
- package/lib/commonjs/fabric/gamma/StackScreenNativeComponent.js.map +0 -1
- package/lib/module/fabric/gamma/ScreenStackHostNativeComponent.js +0 -5
- package/lib/module/fabric/gamma/ScreenStackHostNativeComponent.js.map +0 -1
- package/lib/module/fabric/gamma/StackScreenNativeComponent.js.map +0 -1
- package/lib/typescript/fabric/gamma/ScreenStackHostNativeComponent.d.ts.map +0 -1
- package/lib/typescript/fabric/gamma/StackScreenNativeComponent.d.ts.map +0 -1
- /package/ios/gamma/stack/{RNSStackScreenComponentEventEmitter.h → screen/RNSStackScreenComponentEventEmitter.h} +0 -0
- /package/ios/gamma/stack/{RNSStackScreenComponentEventEmitter.mm → screen/RNSStackScreenComponentEventEmitter.mm} +0 -0
- /package/ios/gamma/stack/{RNSStackScreenComponentViewManager.h → screen/RNSStackScreenComponentViewManager.h} +0 -0
- /package/ios/gamma/stack/{RNSStackScreenComponentViewManager.mm → screen/RNSStackScreenComponentViewManager.mm} +0 -0
- /package/lib/commonjs/fabric/gamma/{StackScreenNativeComponent.js → stack/StackScreenNativeComponent.js} +0 -0
- /package/lib/module/fabric/gamma/{StackScreenNativeComponent.js → stack/StackScreenNativeComponent.js} +0 -0
- /package/lib/typescript/fabric/gamma/{StackScreenNativeComponent.d.ts → stack/StackScreenNativeComponent.d.ts} +0 -0
- /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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
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
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
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
|
|
7
|
+
private let stackHostComponentView: RNSStackHostComponentView
|
|
8
8
|
|
|
9
|
-
@objc public required init(stackHostComponentView:
|
|
10
|
-
self.
|
|
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.
|
|
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
|
-
|
|
50
|
+
stackHostComponentView.reactSubviews() as! [RNSStackScreenComponentView]
|
|
51
51
|
return screenStackComponents.lazy.map(\.controller)
|
|
52
52
|
}
|
|
53
53
|
|
package/ios/gamma/stack/{RNSScreenStackHostComponentView.mm → host/RNSStackHostComponentView.mm}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#import "
|
|
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
|
|
16
|
+
@interface RNSStackHostComponentView () <RCTMountingTransactionObserving>
|
|
17
17
|
@end
|
|
18
18
|
|
|
19
|
-
@implementation
|
|
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::
|
|
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>
|
|
140
|
+
Class<RCTComponentViewProtocol> RNSStackHostCls(void)
|
|
141
141
|
{
|
|
142
|
-
return
|
|
142
|
+
return RNSStackHostComponentView.class;
|
|
143
143
|
}
|
package/ios/gamma/stack/{RNSStackScreenComponentView.h → screen/RNSStackScreenComponentView.h}
RENAMED
|
@@ -6,21 +6,21 @@
|
|
|
6
6
|
NS_ASSUME_NONNULL_BEGIN
|
|
7
7
|
|
|
8
8
|
@class RNSStackScreenController;
|
|
9
|
-
@class
|
|
9
|
+
@class RNSStackHostComponentView;
|
|
10
10
|
|
|
11
|
-
typedef NS_ENUM(int,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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)
|
|
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)
|
|
23
|
+
@property (nonatomic, readonly) RNSStackScreenLifecycleState maxLifecycleState;
|
|
24
24
|
|
|
25
25
|
@end
|
|
26
26
|
|
package/ios/gamma/stack/{RNSStackScreenComponentView.mm → screen/RNSStackScreenComponentView.mm}
RENAMED
|
@@ -49,7 +49,7 @@ namespace react = facebook::react;
|
|
|
49
49
|
|
|
50
50
|
// container state
|
|
51
51
|
_screenKey = nil;
|
|
52
|
-
_maxLifecycleState =
|
|
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<
|
|
90
|
+
_maxLifecycleState = static_cast<RNSStackScreenLifecycleState>(newComponentProps.maxLifecycleState);
|
|
91
91
|
_needsLifecycleStateUpdate = YES;
|
|
92
92
|
}
|
|
93
93
|
|
package/ios/gamma/stack/{RNSStackScreenController.swift → screen/RNSStackScreenController.swift}
RENAMED
|
@@ -3,13 +3,13 @@ import UIKit
|
|
|
3
3
|
|
|
4
4
|
@objc
|
|
5
5
|
public class RNSStackScreenController: UIViewController {
|
|
6
|
-
let
|
|
6
|
+
let screen: RNSStackScreenComponentView
|
|
7
7
|
private var reactEventEmitter: RNSStackScreenComponentEventEmitter {
|
|
8
|
-
return
|
|
8
|
+
return screen.reactEventEmitter()
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
@objc public required init(componentView: RNSStackScreenComponentView) {
|
|
12
|
-
self.
|
|
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.
|
|
25
|
+
if let stackHost = self.screen.stackHost {
|
|
26
26
|
return stackHost.stackController
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -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
|
|
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(
|
|
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","
|
|
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
|
-
|
|
9
|
-
|
|
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","
|
|
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;
|
|
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)('
|
|
10
|
-
//# sourceMappingURL=
|
|
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
|
|
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(
|
|
10
|
+
return /*#__PURE__*/React.createElement(StackHostNativeComponent, {
|
|
11
11
|
style: styles.container
|
|
12
12
|
}, children);
|
|
13
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","StyleSheet","
|
|
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
|
-
|
|
3
|
-
|
|
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","
|
|
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,
|
|
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 @@
|
|
|
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 {
|
|
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 }:
|
|
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,
|
|
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 +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,
|
|
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
|
|
4
|
-
export default
|
|
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;
|
|
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=
|
|
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-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
226
|
-
"className": "
|
|
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
|
|
4
|
-
import type {
|
|
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 }:
|
|
9
|
+
function StackHost({ children }: StackHostProps) {
|
|
10
10
|
return (
|
|
11
|
-
<
|
|
11
|
+
<StackHostNativeComponent style={styles.container}>
|
|
12
12
|
{children}
|
|
13
|
-
</
|
|
13
|
+
</StackHostNativeComponent>
|
|
14
14
|
);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -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
|
|
6
|
+
const StackHost = View;
|
|
6
7
|
|
|
7
|
-
export default
|
|
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
|
|
|
@@ -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 +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"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/fabric/gamma/{StackScreenNativeComponent.ts → stack/StackScreenNativeComponent.ts}
RENAMED
|
File without changes
|