Skip to content

Commit

Permalink
React.Element<any> » React.Element<*>
Browse files Browse the repository at this point in the history
Reviewed By: yungsters

Differential Revision: D4027388

fbshipit-source-id: 5bc178eab1ab72283622b4b7d418f9fd43ec0792
  • Loading branch information
kassens authored and Facebook Github Bot committed Oct 16, 2016
1 parent 8e2d4cc commit e58d17e
Show file tree
Hide file tree
Showing 62 changed files with 136 additions and 136 deletions.
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/AccessibilityIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ exports.description = 'Interface to show iOS\' accessibility samples';
exports.examples = [
{
title: 'Accessibility elements',
render(): React.Element<any> { return <AccessibilityIOSExample />; }
render(): React.Element<*> { return <AccessibilityIOSExample />; }
},
];
10 changes: 5 additions & 5 deletions Examples/UIExplorer/js/ActionSheetIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,27 +197,27 @@ exports.description = 'Interface to show iOS\' action sheets';
exports.examples = [
{
title: 'Show Action Sheet',
render(): React.Element<any> { return <ActionSheetExample />; }
render(): React.Element<*> { return <ActionSheetExample />; }
},
{
title: 'Show Action Sheet with tinted buttons',
render(): React.Element<any> { return <ActionSheetTintExample />; }
render(): React.Element<*> { return <ActionSheetTintExample />; }
},
{
title: 'Show Share Action Sheet',
render(): React.Element<any> {
render(): React.Element<*> {
return <ShareActionSheetExample url="https://code.facebook.com" />;
}
},
{
title: 'Share Local Image',
render(): React.Element<any> {
render(): React.Element<*> {
return <ShareActionSheetExample url="bunny.png" />;
}
},
{
title: 'Share Screenshot',
render(): React.Element<any> {
render(): React.Element<*> {
return <ShareScreenshotExample />;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/AdSupportIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ exports.description = 'Example of using the ad support API.';
exports.examples = [
{
title: 'Ad Support IOS',
render: function(): React.Element<any> {
render: function(): React.Element<*> {
return <AdSupportIOSExample />;
},
}
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/AlertIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exports.examples = [{
},
{
title: 'Prompt Options',
render(): React.Element<any> {
render(): React.Element<*> {
return <PromptOptions />;
}
},
Expand Down
4 changes: 2 additions & 2 deletions Examples/UIExplorer/js/AnimatedGratuitousApp/AnExApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class Circle extends React.Component {
});
}

render(): React.Element<any> {
render(): React.Element<*> {
if (this.state.panResponder) {
var handlers = this.state.panResponder.panHandlers;
var dragStyle = { // Used to position while dragging
Expand Down Expand Up @@ -190,7 +190,7 @@ class AnExApp extends React.Component {
this._onMove = this._onMove.bind(this);
}

render(): React.Element<any> {
render(): React.Element<*> {
var circles = this.state.keys.map((key, idx) => {
if (key === this.state.activeKey) {
return <Circle key={key + 'd'} dummy={true} />;
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/AnimatedGratuitousApp/AnExBobble.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class AnExBobble extends React.Component {
});
}

render(): React.Element<any> {
render(): React.Element<*> {
return (
<View style={styles.bobbleContainer}>
{this.state.bobbles.map((_, i) => {
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/AnimatedGratuitousApp/AnExSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class AnExSet extends React.Component {
openColor: randColor(),
};
}
render(): React.Element<any> {
render(): React.Element<*> {
var backgroundColor = this.props.openVal ?
this.props.openVal.interpolate({
inputRange: [0, 1],
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/AnimatedGratuitousApp/AnExTilt.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class AnExTilt extends React.Component {
this._startBurnsZoom();
}

render(): React.Element<any> {
render(): React.Element<*> {
return (
<Animated.View
{...this.state.tiltPanResponder.panHandlers}
Expand Down
6 changes: 3 additions & 3 deletions Examples/UIExplorer/js/AppStateExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,16 @@ exports.examples = [
{
title: 'Subscribed AppState:',
description: 'This changes according to the current state, so you can only ever see it rendered as "active"',
render(): React.Element<any> { return <AppStateSubscription showCurrentOnly={true} />; }
render(): React.Element<*> { return <AppStateSubscription showCurrentOnly={true} />; }
},
{
title: 'Previous states:',
render(): React.Element<any> { return <AppStateSubscription showCurrentOnly={false} />; }
render(): React.Element<*> { return <AppStateSubscription showCurrentOnly={false} />; }
},
{
platform: 'ios',
title: 'Memory Warnings',
description: 'In the IOS simulator, hit Shift+Command+M to simulate a memory warning.',
render(): React.Element<any> { return <AppStateSubscription showMemoryWarnings={true} />; }
render(): React.Element<*> { return <AppStateSubscription showMemoryWarnings={true} />; }
},
];
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/AsyncStorageExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,6 @@ exports.description = 'Asynchronous local disk storage.';
exports.examples = [
{
title: 'Basics - getItem, setItem, removeItem',
render(): React.Element<any> { return <BasicStorageExample />; }
render(): React.Element<*> { return <BasicStorageExample />; }
},
];
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/CameraRollExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ exports.description = 'Example component that uses CameraRoll to list user\'s ph
exports.examples = [
{
title: 'Photos',
render(): React.Element<any> { return <CameraRollExample />; }
render(): React.Element<*> { return <CameraRollExample />; }
}
];
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/DatePickerIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ exports.description = 'Select dates and times using the native UIDatePicker.';
exports.examples = [
{
title: '<DatePickerIOS>',
render: function(): React.Element<any> {
render: function(): React.Element<*> {
return <DatePickerExample />;
},
}];
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/ExampleTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import type React from 'react';

export type Example = {
title: string,
render: () => ?React.Element<any>,
render: () => ?React.Element<*>,
description?: string,
platform?: string,
};
Expand Down
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/GeolocationExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ exports.description = 'Examples of using the Geolocation API.';
exports.examples = [
{
title: 'navigator.geolocation',
render: function(): React.Element<any> {
render: function(): React.Element<*> {
return <GeolocationExample />;
},
}
Expand Down
4 changes: 2 additions & 2 deletions Examples/UIExplorer/js/LayoutAnimationExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ exports.title = 'Layout Animation';
exports.description = 'Layout animation';
exports.examples = [{
title: 'Add and remove views',
render(): React.Element<any> {
render(): React.Element<*> {
return <AddRemoveExample />;
},
}, {
title: 'Cross fade views',
render(): React.Element<any> {
render(): React.Element<*> {
return <CrossFadeExample />;
},
}];
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/LayoutEventsExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ exports.description = 'Examples that show how Layout events can be used to ' +
exports.examples = [
{
title: 'LayoutEventExample',
render: function(): React.Element<any> {
render: function(): React.Element<*> {
return <LayoutEventExample />;
},
}];
2 changes: 1 addition & 1 deletion Examples/UIExplorer/js/ListViewPagingExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class ListViewPagingExample extends React.Component {
};
}

renderRow = (rowData: string, sectionID: string, rowID: string): React.Element<any> => {
renderRow = (rowData: string, sectionID: string, rowID: string): React.Element<*> => {
return (<Thumb text={rowData}/>);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class Example extends Component {
this.state = reducer();
}

render(): React.Element<any> {
render(): React.Element<*> {
return (
<ExampleNavigator
navigationState={this.state}
Expand Down Expand Up @@ -128,7 +128,7 @@ class ExampleNavigator extends Component {
navigate: PropTypes.func.isRequired,
};

render(): React.Element<any> {
render(): React.Element<*> {
return (
<NavigationTransitioner
navigationState={this.props.navigationState}
Expand All @@ -140,7 +140,7 @@ class ExampleNavigator extends Component {

_render(
transitionProps: NavigationTransitionProps,
): Array<React.Element<any>> {
): Array<React.Element<*>> {
return transitionProps.scenes.map((scene) => {
const sceneProps = {
...transitionProps,
Expand All @@ -152,7 +152,7 @@ class ExampleNavigator extends Component {

_renderScene(
sceneProps: NavigationSceneRendererProps,
): React.Element<any> {
): React.Element<*> {
return (
<ExampleScene
{...sceneProps}
Expand Down Expand Up @@ -181,7 +181,7 @@ class ExampleScene extends Component {
navigate: PropTypes.func.isRequired,
};

render(): React.Element<any> {
render(): React.Element<*> {
const {scene, navigate} = this.props;
return (
<Animated.View
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class Example extends Component {
this.state = reducer();
}

render(): React.Element<any> {
render(): React.Element<*> {
return (
<View style={styles.example}>
<ExampleNavigator
Expand Down Expand Up @@ -154,7 +154,7 @@ class ExampleNavigator extends Component {
this._renderScene = this._renderScene.bind(this);
}

render(): React.Element<any> {
render(): React.Element<*> {
return (
<NavigationTransitioner
navigationState={this.props.navigationState}
Expand All @@ -165,7 +165,7 @@ class ExampleNavigator extends Component {

_render(
transitionProps: NavigationTransitionProps,
): React.Element<any> {
): React.Element<*> {
const scenes = transitionProps.scenes.map((scene) => {
const sceneProps = {
...transitionProps,
Expand All @@ -182,7 +182,7 @@ class ExampleNavigator extends Component {

_renderScene(
sceneProps: NavigationSceneRendererProps,
): React.Element<any> {
): React.Element<*> {
return (
<ExampleScene
{...sceneProps}
Expand All @@ -203,7 +203,7 @@ class ExampleScene extends Component {
navigate: PropTypes.func.isRequired,
};

render(): React.Element<any> {
render(): React.Element<*> {
const {scene, navigate} = this.props;

const panHandlers = NavigationPagerPanResponder.forHorizontal({
Expand Down
8 changes: 4 additions & 4 deletions Examples/UIExplorer/js/NetInfoExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,22 +175,22 @@ exports.examples = [
{
title: 'NetInfo.isConnected',
description: 'Asynchronously load and observe connectivity',
render(): React.Element<any> { return <IsConnected />; }
render(): React.Element<*> { return <IsConnected />; }
},
{
title: 'NetInfo.update',
description: 'Asynchronously load and observe connectionInfo',
render(): React.Element<any> { return <ConnectionInfoCurrent />; }
render(): React.Element<*> { return <ConnectionInfoCurrent />; }
},
{
title: 'NetInfo.updateHistory',
description: 'Observed updates to connectionInfo',
render(): React.Element<any> { return <ConnectionInfoSubscription />; }
render(): React.Element<*> { return <ConnectionInfoSubscription />; }
},
{
platform: 'android',
title: 'NetInfo.isConnectionExpensive (Android)',
description: 'Asynchronously check isConnectionExpensive',
render(): React.Element<any> { return <IsConnectionExpensive />; }
render(): React.Element<*> { return <IsConnectionExpensive />; }
},
];
4 changes: 2 additions & 2 deletions Examples/UIExplorer/js/PickerIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,13 @@ exports.description = 'Render lists of selectable options with UIPickerView.';
exports.examples = [
{
title: '<PickerIOS>',
render: function(): React.Element<any> {
render: function(): React.Element<*> {
return <PickerExample />;
},
},
{
title: '<PickerIOS> with custom styling',
render: function(): React.Element<any> {
render: function(): React.Element<*> {
return <PickerStyleExample />;
},
}];
6 changes: 3 additions & 3 deletions Examples/UIExplorer/js/PushNotificationIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ exports.description = 'Apple PushNotification and badge value';
exports.examples = [
{
title: 'Badge Number',
render(): React.Element<any> {
render(): React.Element<*> {
return (
<View>
<Button
Expand All @@ -210,13 +210,13 @@ exports.examples = [
},
{
title: 'Push Notifications',
render(): React.Element<any> {
render(): React.Element<*> {
return <NotificationExample />;
}
},
{
title: 'Notifications Permissions',
render(): React.Element<any> {
render(): React.Element<*> {
return <NotificationPermissionExample />;
}
}];
4 changes: 2 additions & 2 deletions Examples/UIExplorer/js/RCTRootViewIOSExample.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ exports.description = 'Examples that show useful methods when embedding React Na
exports.examples = [
{
title: 'Updating app properties in runtime',
render(): React.Element<any> {
render(): React.Element<*> {
return (
<AppPropertiesUpdateExample/>
);
},
},
{
title: 'RCTRootView\'s size flexibility',
render(): React.Element<any> {
render(): React.Element<*> {
return (
<RootViewSizeFlexibilityExample/>
);
Expand Down
Loading

0 comments on commit e58d17e

Please sign in to comment.