File tree Expand file tree Collapse file tree
packages/react-native/src/private/components/scrollview Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ *
7+ * @flow strict-local
8+ * @format
9+ */
10+
11+ import type { ScrollViewNativeProps } from '../../../../Libraries/Components/ScrollView/ScrollViewNativeComponentType' ;
12+ import type { ViewProps } from '../../../../Libraries/Components/View/ViewPropTypes' ;
13+ import type { HostComponent } from '../../types/HostComponent' ;
14+
15+ import AndroidHorizontalScrollViewNativeComponent from '../../../../Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent' ;
16+ import AndroidHorizontalScrollContentViewNativeComponent from '../../specs_DEPRECATED/components/AndroidHorizontalScrollContentViewNativeComponent' ;
17+
18+ export const HScrollViewNativeComponent : HostComponent < ScrollViewNativeProps > =
19+ AndroidHorizontalScrollViewNativeComponent ;
20+
21+ export const HScrollContentViewNativeComponent : HostComponent < ViewProps > =
22+ AndroidHorizontalScrollContentViewNativeComponent ;
Original file line number Diff line number Diff line change @@ -12,18 +12,11 @@ import type {ScrollViewNativeProps} from '../../../../Libraries/Components/Scrol
1212import type { ViewProps } from '../../../../Libraries/Components/View/ViewPropTypes' ;
1313import type { HostComponent } from '../../types/HostComponent' ;
1414
15- import AndroidHorizontalScrollViewNativeComponent from '../../../../Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent' ;
1615import ScrollContentViewNativeComponent from '../../../../Libraries/Components/ScrollView/ScrollContentViewNativeComponent' ;
1716import ScrollViewNativeComponent from '../../../../Libraries/Components/ScrollView/ScrollViewNativeComponent' ;
18- import Platform from '../../../../Libraries/Utilities/Platform' ;
19- import AndroidHorizontalScrollContentViewNativeComponent from '../../specs_DEPRECATED/components/AndroidHorizontalScrollContentViewNativeComponent' ;
2017
2118export const HScrollViewNativeComponent : HostComponent < ScrollViewNativeProps > =
22- Platform . OS === 'android'
23- ? AndroidHorizontalScrollViewNativeComponent
24- : ScrollViewNativeComponent ;
19+ ScrollViewNativeComponent ;
2520
2621export const HScrollContentViewNativeComponent : HostComponent < ViewProps > =
27- Platform . OS === 'android'
28- ? AndroidHorizontalScrollContentViewNativeComponent
29- : ScrollContentViewNativeComponent ;
22+ ScrollContentViewNativeComponent ;
Original file line number Diff line number Diff line change 1+ /**
2+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3+ *
4+ * This source code is licensed under the MIT license found in the
5+ * LICENSE file in the root directory of this source tree.
6+ *
7+ * @flow strict-local
8+ * @format
9+ */
10+
11+ import type { ScrollViewNativeProps } from '../../../../Libraries/Components/ScrollView/ScrollViewNativeComponentType' ;
12+ import type { ViewProps } from '../../../../Libraries/Components/View/ViewPropTypes' ;
13+ import type { HostComponent } from '../../types/HostComponent' ;
14+
15+ import ScrollViewNativeComponent from '../../../../Libraries/Components/ScrollView/ScrollViewNativeComponent' ;
16+ import View from '../../../../Libraries/Components/View/View' ;
17+
18+ export const VScrollViewNativeComponent : HostComponent < ScrollViewNativeProps > =
19+ ScrollViewNativeComponent ;
20+
21+ export const VScrollContentViewNativeComponent : HostComponent < ViewProps > = View ;
Original file line number Diff line number Diff line change @@ -14,11 +14,8 @@ import type {HostComponent} from '../../types/HostComponent';
1414
1515import ScrollContentViewNativeComponent from '../../../../Libraries/Components/ScrollView/ScrollContentViewNativeComponent' ;
1616import ScrollViewNativeComponent from '../../../../Libraries/Components/ScrollView/ScrollViewNativeComponent' ;
17- import View from '../../../../Libraries/Components/View/View' ;
18- import Platform from '../../../../Libraries/Utilities/Platform' ;
1917
2018export const VScrollViewNativeComponent : HostComponent < ScrollViewNativeProps > =
2119 ScrollViewNativeComponent ;
2220
23- export const VScrollContentViewNativeComponent : HostComponent < ViewProps > =
24- Platform . OS === 'android' ? View : ScrollContentViewNativeComponent ;
21+ export const VScrollContentViewNativeComponent : HostComponent < ViewProps > = ScrollContentViewNativeComponent ;
You can’t perform that action at this time.
0 commit comments