1 | #import "RNSModalScreen.h"
|
2 |
|
3 | #ifdef RCT_NEW_ARCH_ENABLED
|
4 | #import <React/RCTFabricComponentsPlugins.h>
|
5 | #import <rnscreens/RNSModalScreenComponentDescriptor.h>
|
6 | #endif
|
7 |
|
8 | @implementation RNSModalScreen
|
9 |
|
10 | #ifdef RCT_NEW_ARCH_ENABLED
|
11 | + (react::ComponentDescriptorProvider)componentDescriptorProvider
|
12 | {
|
13 | return react::concreteComponentDescriptorProvider<react::RNSModalScreenComponentDescriptor>();
|
14 | }
|
15 | #endif
|
16 | @end
|
17 |
|
18 | #ifdef RCT_NEW_ARCH_ENABLED
|
19 | Class<RCTComponentViewProtocol> RNSModalScreenCls(void)
|
20 | {
|
21 | return RNSModalScreen.class;
|
22 | }
|
23 | #endif
|
24 |
|
25 | @implementation RNSModalScreenManager
|
26 |
|
27 | RCT_EXPORT_MODULE()
|
28 |
|
29 | #ifdef RCT_NEW_ARCH_ENABLED
|
30 | #else
|
31 | - (UIView *)view
|
32 | {
|
33 | return [[RNSModalScreen alloc] initWithBridge:self.bridge];
|
34 | }
|
35 | #endif // RCT_NEW_ARCH_ENABLED
|
36 | @end
|