mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a62490808d
Summary: We will need to use ES6 exports when we switch this to use the codegen'd view configs. I also need to have a named export from this file. Reviewed By: rickhanlonii Differential Revision: D15923789 fbshipit-source-id: 513e27834583b6d021ff06d5d7f116ccdcd27722
24 lines
596 B
JavaScript
24 lines
596 B
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 ReactNative = require('../../Renderer/shims/ReactNative');
|
|
|
|
const requireNativeComponent = require('../../ReactNative/requireNativeComponent');
|
|
|
|
import type {ViewProps} from './ViewPropTypes';
|
|
|
|
type ViewNativeComponentType = Class<ReactNative.NativeComponent<ViewProps>>;
|
|
|
|
export default ((requireNativeComponent(
|
|
'RCTView',
|
|
): any): ViewNativeComponentType);
|