1
1
#ifdef RCT_NEW_ARCH_ENABLED
2
2
#import " PagerViewView.h"
3
3
4
- #import < react/renderer/components/PagerViewView /ComponentDescriptors.h>
5
- #import < react/renderer/components/PagerViewView /EventEmitters.h>
6
- #import < react/renderer/components/PagerViewView /Props.h>
7
- #import < react/renderer/components/PagerViewView /RCTComponentViewHelpers.h>
4
+ #import < react/renderer/components/RNCViewPager /ComponentDescriptors.h>
5
+ #import < react/renderer/components/RNCViewPager /EventEmitters.h>
6
+ #import < react/renderer/components/RNCViewPager /Props.h>
7
+ #import < react/renderer/components/RNCViewPager /RCTComponentViewHelpers.h>
8
8
9
9
#import " RCTFabricComponentsPlugins.h"
10
10
11
11
using namespace facebook ::react;
12
12
13
- @interface PagerViewView () <RCTPagerViewViewViewProtocol >
13
+ @interface PagerViewView () <RCTRNCViewPagerViewProtocol >
14
14
15
15
@end
16
16
@@ -20,13 +20,13 @@ @implementation PagerViewView {
20
20
21
21
+ (ComponentDescriptorProvider)componentDescriptorProvider
22
22
{
23
- return concreteComponentDescriptorProvider<PagerViewViewComponentDescriptor >();
23
+ return concreteComponentDescriptorProvider<RNCViewPagerComponentDescriptor >();
24
24
}
25
25
26
26
- (instancetype )initWithFrame : (CGRect)frame
27
27
{
28
28
if (self = [super initWithFrame: frame]) {
29
- static const auto defaultProps = std::make_shared<const PagerViewViewProps >();
29
+ static const auto defaultProps = std::make_shared<const RNCViewPagerProps >();
30
30
_props = defaultProps;
31
31
32
32
_view = [[UIView alloc ] init ];
@@ -39,20 +39,20 @@ - (instancetype)initWithFrame:(CGRect)frame
39
39
40
40
- (void )updateProps : (Props::Shared const &)props oldProps : (Props::Shared const &)oldProps
41
41
{
42
- const auto &oldViewProps = *std::static_pointer_cast<PagerViewViewProps const >(_props);
43
- const auto &newViewProps = *std::static_pointer_cast<PagerViewViewProps const >(props);
42
+ const auto &oldViewProps = *std::static_pointer_cast<RNCViewPagerProps const >(_props);
43
+ const auto &newViewProps = *std::static_pointer_cast<RNCViewPagerProps const >(props);
44
44
45
45
[super updateProps: props oldProps: oldProps];
46
46
}
47
47
48
- Class <RCTComponentViewProtocol> PagerViewViewCls (void )
48
+ Class <RCTComponentViewProtocol> RNCViewPagerCls (void )
49
49
{
50
50
return PagerViewView.class ;
51
51
}
52
52
53
53
- (void )handleCommand : (const NSString *)commandName args : (const NSArray *)args
54
54
{
55
- RCTPagerViewViewHandleCommand (self, commandName, args);
55
+ RCTRNCViewPagerHandleCommand (self, commandName, args);
56
56
}
57
57
58
58
- (void )setPage : (NSInteger )selectedPage {
0 commit comments