File tree Expand file tree Collapse file tree 9 files changed +23
-27
lines changed Expand file tree Collapse file tree 9 files changed +23
-27
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ concurrency:
20
20
21
21
jobs :
22
22
android-build :
23
- runs-on : macos-latest
23
+ runs-on : macos-12
24
24
steps :
25
25
- uses : actions/checkout@v4
26
26
- uses : ./.github/actions/install-dependencies
Original file line number Diff line number Diff line change 1
1
#pragma once
2
2
3
- #include < react/renderer/components/RNCViewPager/EventEmitters.h>
4
- #include < react/renderer/components/RNCViewPager/Props.h>
3
+ // These imports come from the common/cpp directory
4
+ #include < react/renderer/components/pagerview/EventEmitters.h>
5
+ #include < react/renderer/components/pagerview/Props.h>
6
+ // This import comes from the codegen directory
5
7
#include < react/renderer/components/RNCViewPager/RNCViewPagerState.h>
6
8
#include < react/renderer/components/view/ConcreteViewShadowNode.h>
7
9
#include < react/renderer/core/LayoutContext.h>
Original file line number Diff line number Diff line change 3
3
#import < Foundation/Foundation.h>
4
4
#import " RNCPagerViewComponentView.h"
5
5
#import < RNCViewPager/RNCViewPagerComponentDescriptor.h>
6
- #import < react/renderer/components/RNCViewPager /EventEmitters.h>
7
- #import < react/renderer/components/RNCViewPager /Props.h>
8
- #import < react/renderer/components/RNCViewPager /RCTComponentViewHelpers.h>
6
+ #import < react/renderer/components/pagerview /EventEmitters.h>
7
+ #import < react/renderer/components/pagerview /Props.h>
8
+ #import < react/renderer/components/pagerview /RCTComponentViewHelpers.h>
9
9
10
10
#import " RCTFabricComponentsPlugins.h"
11
11
#import " React/RCTConversions.h"
Original file line number Diff line number Diff line change 2
2
3
3
#import < Foundation/Foundation.h>
4
4
#import " LEGACY_RNCPagerViewComponentView.h"
5
- #import < react/renderer/components/LEGACY_RNCViewPager /ComponentDescriptors.h>
6
- #import < react/renderer/components/LEGACY_RNCViewPager /EventEmitters.h>
7
- #import < react/renderer/components/LEGACY_RNCViewPager /Props.h>
8
- #import < react/renderer/components/LEGACY_RNCViewPager /RCTComponentViewHelpers.h>
5
+ #import < react/renderer/components/pagerview /ComponentDescriptors.h>
6
+ #import < react/renderer/components/pagerview /EventEmitters.h>
7
+ #import < react/renderer/components/pagerview /Props.h>
8
+ #import < react/renderer/components/pagerview /RCTComponentViewHelpers.h>
9
9
10
10
#import " RCTFabricComponentsPlugins.h"
11
11
#import " React/RCTConversions.h"
@@ -438,4 +438,4 @@ - (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecogni
438
438
return LEGACY_RNCPagerViewComponentView.class ;
439
439
}
440
440
441
- #endif
441
+ #endif
Original file line number Diff line number Diff line change 121
121
"useTabs" : false
122
122
},
123
123
"codegenConfig" : {
124
- "libraries" : [
125
- {
126
- "name" : " RNCViewPager" ,
127
- "type" : " components" ,
128
- "jsSrcsDir" : " src/PagerViewNativeComponent"
129
- },
130
- {
131
- "name" : " LEGACY_RNCViewPager" ,
132
- "type" : " components" ,
133
- "jsSrcsDir" : " src/LEGACY_PagerViewNativeComponent"
134
- }
135
- ]
124
+ "name" : " pagerview" ,
125
+ "type" : " all" ,
126
+ "jsSrcsDir" : " ./src/specs" ,
127
+ "android" : {
128
+ "javaPackageName" : " com.reactnativepagerview"
129
+ }
136
130
},
137
131
"react-native-builder-bob" : {
138
132
"source" : " src" ,
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ import PagerViewNativeComponent, {
14
14
OnPageScrollStateChangedEventData ,
15
15
OnPageSelectedEventData ,
16
16
NativeProps ,
17
- } from './PagerViewNativeComponent /PagerViewNativeComponent' ;
17
+ } from './specs /PagerViewNativeComponent' ;
18
18
19
19
import LEGACY_PagerViewNativeComponent , {
20
20
Commands as LEGACY_PagerViewNativeCommands ,
21
- } from './LEGACY_PagerViewNativeComponent /LEGACY_PagerViewNativeComponent' ;
21
+ } from './specs /LEGACY_PagerViewNativeComponent' ;
22
22
23
23
// The Fabric component for PagerView uses a work around present also in ScrollView:
24
24
// https://github.com/callstack/react-native-pager-view/blob/master/ios/Fabric/RNCPagerViewComponentView.mm#L362-L368
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import type {
7
7
OnPageSelectedEventData as PagerViewOnPageSelectedEventData ,
8
8
OnPageScrollStateChangedEventData as PageScrollStateChangedNativeEventData ,
9
9
NativeProps ,
10
- } from './PagerViewNativeComponent /PagerViewNativeComponent' ;
10
+ } from './specs /PagerViewNativeComponent' ;
11
11
12
12
export type {
13
13
PagerViewOnPageScrollEventData ,
Original file line number Diff line number Diff line change 1
1
/*
2
- Note: The types below are duplicated between this file and `src/PagerViewNativeComponent /PagerViewNativeComponent.ts`.
2
+ Note: The types below are duplicated between this file and `src/specs /PagerViewNativeComponent.ts`.
3
3
4
4
This is on purpose. Firstly, we're declaring two native modules with two different iOS implementation flavors, but the same API.
5
5
Secondly, as these files serve as a reference point for React Native's new architecture Codegen process (which takes care of the
File renamed without changes.
You can’t perform that action at this time.
0 commit comments