mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-21 19:11:22 +08:00
React.Element<any> » React.Element<*>
Reviewed By: yungsters Differential Revision: D4027388 fbshipit-source-id: 5bc178eab1ab72283622b4b7d418f9fd43ec0792
This commit is contained in:
committed by
Facebook Github Bot
parent
8e2d4cc680
commit
e58d17e68b
@@ -78,14 +78,14 @@ exports.examples = [
|
||||
},
|
||||
}, {
|
||||
title: '<Text onPress={fn}> with highlight',
|
||||
render: function(): React.Element<any> {
|
||||
render: function(): React.Element<*> {
|
||||
return <TextOnPressBox />;
|
||||
},
|
||||
}, {
|
||||
title: 'Touchable feedback events',
|
||||
description: '<Touchable*> components accept onPress, onPressIn, ' +
|
||||
'onPressOut, and onLongPress as props.',
|
||||
render: function(): React.Element<any> {
|
||||
render: function(): React.Element<*> {
|
||||
return <TouchableFeedbackEvents />;
|
||||
},
|
||||
}, {
|
||||
@@ -93,13 +93,13 @@ exports.examples = [
|
||||
description: '<Touchable*> components also accept delayPressIn, ' +
|
||||
'delayPressOut, and delayLongPress as props. These props impact the ' +
|
||||
'timing of feedback events.',
|
||||
render: function(): React.Element<any> {
|
||||
render: function(): React.Element<*> {
|
||||
return <TouchableDelayEvents />;
|
||||
},
|
||||
}, {
|
||||
title: '3D Touch / Force Touch',
|
||||
description: 'iPhone 6s and 6s plus support 3D touch, which adds a force property to touches',
|
||||
render: function(): React.Element<any> {
|
||||
render: function(): React.Element<*> {
|
||||
return <ForceTouchExample />;
|
||||
},
|
||||
platform: 'ios',
|
||||
@@ -107,14 +107,14 @@ exports.examples = [
|
||||
title: 'Touchable Hit Slop',
|
||||
description: '<Touchable*> components accept hitSlop prop which extends the touch area ' +
|
||||
'without changing the view bounds.',
|
||||
render: function(): React.Element<any> {
|
||||
render: function(): React.Element<*> {
|
||||
return <TouchableHitSlop />;
|
||||
},
|
||||
}, {
|
||||
title: 'Disabled Touchable*',
|
||||
description: '<Touchable*> components accept disabled prop which prevents ' +
|
||||
'any interaction with component',
|
||||
render: function(): React.Element<any> {
|
||||
render: function(): React.Element<*> {
|
||||
return <TouchableDisabled />;
|
||||
},
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user