mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 03:26:07 +00:00
RN: Fix Remaining ReactElement References
Summary: Fixes remaining references to `ReactElement` that did not already have `React` in scope. Reviewed By: bestander, vjeux Differential Revision: D4022022 fbshipit-source-id: 4aeacee0cdbb2c825feba10282208316d064c578
This commit is contained in:
parent
e8198aed8d
commit
b77b760810
@ -23,16 +23,18 @@
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
import type React from 'react';
|
||||
|
||||
export type Example = {
|
||||
title: string,
|
||||
render: () => ?React.Element<any>,
|
||||
description?: string,
|
||||
platform?: string;
|
||||
platform?: string,
|
||||
};
|
||||
|
||||
export type ExampleModule = {
|
||||
title: string;
|
||||
description: string;
|
||||
examples: Array<Example>;
|
||||
external?: bool;
|
||||
title: string,
|
||||
description: string,
|
||||
examples: Array<Example>,
|
||||
external?: bool,
|
||||
};
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
const Animated = require('Animated');
|
||||
|
||||
import type React from 'react';
|
||||
|
||||
// Object Instances
|
||||
|
||||
export type NavigationAnimatedValue = Animated.Value;
|
||||
@ -112,7 +114,7 @@ export type NavigationAnimationSetter = (
|
||||
|
||||
export type NavigationSceneRenderer = (
|
||||
props: NavigationSceneRendererProps,
|
||||
) => ?ReactElement<any>;
|
||||
) => ?React.Element<any>;
|
||||
|
||||
export type NavigationStyleInterpolator = (
|
||||
props: NavigationSceneRendererProps,
|
||||
|
@ -18,6 +18,8 @@ const defineLazyObjectProperty = require('defineLazyObjectProperty');
|
||||
const findNodeHandle = require('react/lib/findNodeHandle');
|
||||
const invariant = require('fbjs/lib/invariant');
|
||||
|
||||
import type React from 'react';
|
||||
|
||||
const { UIManager } = NativeModules;
|
||||
|
||||
invariant(UIManager, 'UIManager is undefined. The native module config is probably incorrect.');
|
||||
@ -42,7 +44,7 @@ const _takeSnapshot = UIManager.takeSnapshot;
|
||||
* @platform ios
|
||||
*/
|
||||
UIManager.takeSnapshot = async function(
|
||||
view ?: 'window' | ReactElement<any> | number,
|
||||
view ?: 'window' | React.Element<any> | number,
|
||||
options ?: {
|
||||
width ?: number,
|
||||
height ?: number,
|
||||
|
Loading…
x
Reference in New Issue
Block a user