File tree Expand file tree Collapse file tree 3 files changed +16
-18
lines changed Expand file tree Collapse file tree 3 files changed +16
-18
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,13 @@ interface NativeCommands {
67
67
) => void ;
68
68
}
69
69
70
- export const LEGACY_PagerViewNativeCommands : NativeCommands =
71
- codegenNativeCommands < NativeCommands > ( {
72
- supportedCommands : [
73
- 'setPage' ,
74
- 'setPageWithoutAnimation' ,
75
- 'setScrollEnabledImperatively' ,
76
- ] ,
77
- } ) ;
70
+ export const Commands : NativeCommands = codegenNativeCommands < NativeCommands > ( {
71
+ supportedCommands : [
72
+ 'setPage' ,
73
+ 'setPageWithoutAnimation' ,
74
+ 'setScrollEnabledImperatively' ,
75
+ ] ,
76
+ } ) ;
78
77
79
78
export default codegenNativeComponent < NativeProps > (
80
79
'LEGACY_RNCViewPager'
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ import {
9
9
} from './utils' ;
10
10
11
11
import PagerViewNativeComponent , {
12
- PagerViewNativeCommands ,
12
+ Commands as PagerViewNativeCommands ,
13
13
OnPageScrollEventData ,
14
14
OnPageScrollStateChangedEventData ,
15
15
OnPageSelectedEventData ,
16
16
NativeProps ,
17
17
} from './PagerViewNativeComponent/PagerViewNativeComponent' ;
18
18
19
19
import LEGACY_PagerViewNativeComponent , {
20
- LEGACY_PagerViewNativeCommands ,
20
+ Commands as LEGACY_PagerViewNativeCommands ,
21
21
} from './LEGACY_PagerViewNativeComponent/LEGACY_PagerViewNativeComponent' ;
22
22
23
23
// The Fabric component for PagerView uses a work around present also in ScrollView:
Original file line number Diff line number Diff line change @@ -56,14 +56,13 @@ export interface NativeCommands {
56
56
) => void ;
57
57
}
58
58
59
- export const PagerViewNativeCommands : NativeCommands =
60
- codegenNativeCommands < NativeCommands > ( {
61
- supportedCommands : [
62
- 'setPage' ,
63
- 'setPageWithoutAnimation' ,
64
- 'setScrollEnabledImperatively' ,
65
- ] ,
66
- } ) ;
59
+ export const Commands : NativeCommands = codegenNativeCommands < NativeCommands > ( {
60
+ supportedCommands : [
61
+ 'setPage' ,
62
+ 'setPageWithoutAnimation' ,
63
+ 'setScrollEnabledImperatively' ,
64
+ ] ,
65
+ } ) ;
67
66
68
67
export default codegenNativeComponent < NativeProps > (
69
68
'RNCViewPager'
You can’t perform that action at this time.
0 commit comments