37 lines
745 B
Plaintext
37 lines
745 B
Plaintext
#import "RNSModalScreen.h"
|
|
|
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
#import <React/RCTFabricComponentsPlugins.h>
|
|
#import <rnscreens/RNSModalScreenComponentDescriptor.h>
|
|
#endif
|
|
|
|
@implementation RNSModalScreen
|
|
|
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
+ (react::ComponentDescriptorProvider)componentDescriptorProvider
|
|
{
|
|
return react::concreteComponentDescriptorProvider<react::RNSModalScreenComponentDescriptor>();
|
|
}
|
|
#endif
|
|
@end
|
|
|
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
Class<RCTComponentViewProtocol> RNSModalScreenCls(void)
|
|
{
|
|
return RNSModalScreen.class;
|
|
}
|
|
#endif
|
|
|
|
@implementation RNSModalScreenManager
|
|
|
|
RCT_EXPORT_MODULE()
|
|
|
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
#else
|
|
- (UIView *)view
|
|
{
|
|
return [[RNSModalScreen alloc] initWithBridge:self.bridge];
|
|
}
|
|
#endif // RCT_NEW_ARCH_ENABLED
|
|
@end
|