40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
|
/**
|
||
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
||
|
*
|
||
|
* This source code is licensed under the MIT license found in the
|
||
|
* LICENSE file in the root directory of this source tree.
|
||
|
*
|
||
|
* @format
|
||
|
* @flow
|
||
|
*/
|
||
|
|
||
|
'use strict';
|
||
|
|
||
|
const registerGeneratedViewConfig = require('../../Utilities/registerGeneratedViewConfig');
|
||
|
const requireNativeComponent = require('../../ReactNative/requireNativeComponent');
|
||
|
|
||
|
import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes';
|
||
|
import type {ViewProps} from '../View/ViewPropTypes';
|
||
|
|
||
|
const ScrollContentViewViewConfig = {
|
||
|
uiViewClassName: 'RCTScrollContentView',
|
||
|
bubblingEventTypes: {},
|
||
|
directEventTypes: {},
|
||
|
validAttributes: {},
|
||
|
};
|
||
|
|
||
|
let ScrollContentViewNativeComponent;
|
||
|
if (global.RN$Bridgeless) {
|
||
|
registerGeneratedViewConfig(
|
||
|
'RCTScrollContentView',
|
||
|
ScrollContentViewViewConfig,
|
||
|
);
|
||
|
ScrollContentViewNativeComponent = 'RCTScrollContentView';
|
||
|
} else {
|
||
|
ScrollContentViewNativeComponent = requireNativeComponent<ViewProps>(
|
||
|
'RCTScrollContentView',
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default ((ScrollContentViewNativeComponent: any): HostComponent<ViewProps>);
|