31 lines
898 B
Plaintext
31 lines
898 B
Plaintext
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*
|
|
* @providesModule View
|
|
* @flow
|
|
* @format
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
const {NativeComponent} = require('ReactNative');
|
|
|
|
import type {ViewProps} from 'ViewPropTypes';
|
|
|
|
export type Props = ViewProps;
|
|
|
|
/**
|
|
* Host components in React 16 are represented by strings (eg "div", "View").
|
|
* This is inconvenient for users who want to type a ref (eg `ref: View`).
|
|
* The following type isn't sound but it enables consistent Flow types
|
|
* for various default React Native components, so it seems a good tradeoff.
|
|
*/
|
|
declare class View extends NativeComponent<void, ViewProps> {}
|
|
|
|
module.exports = View;
|