mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-05-30 09:19:21 +00:00
Document 'onBlur', 'onFocus', and 'onContextMenu' props
This commit is contained in:
@@ -24,6 +24,9 @@ const TextPropTypes = {
|
|||||||
children: any,
|
children: any,
|
||||||
importantForAccessibility: oneOf(['auto', 'no', 'no-hide-descendants', 'yes']),
|
importantForAccessibility: oneOf(['auto', 'no', 'no-hide-descendants', 'yes']),
|
||||||
numberOfLines: number,
|
numberOfLines: number,
|
||||||
|
onBlur: func,
|
||||||
|
onContextMenu: func,
|
||||||
|
onFocus: func,
|
||||||
onLayout: func,
|
onLayout: func,
|
||||||
onPress: func,
|
onPress: func,
|
||||||
selectable: bool,
|
selectable: bool,
|
||||||
|
|||||||
@@ -40,8 +40,11 @@ export type ViewProps = {
|
|||||||
children?: any,
|
children?: any,
|
||||||
hitSlop?: EdgeInsetsProp,
|
hitSlop?: EdgeInsetsProp,
|
||||||
importantForAccessibility?: 'auto' | 'yes' | 'no' | 'no-hide-descendants',
|
importantForAccessibility?: 'auto' | 'yes' | 'no' | 'no-hide-descendants',
|
||||||
|
onBlur?: Function,
|
||||||
onClick?: Function,
|
onClick?: Function,
|
||||||
onClickCapture?: Function,
|
onClickCapture?: Function,
|
||||||
|
onContextMenu?: Function,
|
||||||
|
onFocus?: Function,
|
||||||
onLayout?: (event: ViewLayoutEvent) => void,
|
onLayout?: (event: ViewLayoutEvent) => void,
|
||||||
onResponderGrant?: Function,
|
onResponderGrant?: Function,
|
||||||
onResponderMove?: Function,
|
onResponderMove?: Function,
|
||||||
@@ -85,8 +88,11 @@ const ViewPropTypes = {
|
|||||||
children: any,
|
children: any,
|
||||||
hitSlop: EdgeInsetsPropType,
|
hitSlop: EdgeInsetsPropType,
|
||||||
importantForAccessibility: oneOf(['auto', 'no', 'no-hide-descendants', 'yes']),
|
importantForAccessibility: oneOf(['auto', 'no', 'no-hide-descendants', 'yes']),
|
||||||
|
onBlur: func,
|
||||||
onClick: func,
|
onClick: func,
|
||||||
onClickCapture: func,
|
onClickCapture: func,
|
||||||
|
onContextMenu: func,
|
||||||
|
onFocus: func,
|
||||||
onLayout: func,
|
onLayout: func,
|
||||||
onMoveShouldSetResponder: func,
|
onMoveShouldSetResponder: func,
|
||||||
onMoveShouldSetResponderCapture: func,
|
onMoveShouldSetResponderCapture: func,
|
||||||
|
|||||||
@@ -125,6 +125,10 @@ const TextScreen = () => (
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<DocItem name="onBlur" typeInfo="?function" />
|
||||||
|
<DocItem name="onContextMenu" typeInfo="?function" />
|
||||||
|
<DocItem name="onFocus" typeInfo="?function" />
|
||||||
|
|
||||||
<DocItem
|
<DocItem
|
||||||
name="onLayout"
|
name="onLayout"
|
||||||
typeInfo="?function"
|
typeInfo="?function"
|
||||||
|
|||||||
@@ -118,6 +118,10 @@ const ViewScreen = () => (
|
|||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<DocItem name="onBlur" typeInfo="?function" />
|
||||||
|
<DocItem name="onContextMenu" typeInfo="?function" />
|
||||||
|
<DocItem name="onFocus" typeInfo="?function" />
|
||||||
|
|
||||||
<DocItem
|
<DocItem
|
||||||
name="onLayout"
|
name="onLayout"
|
||||||
typeInfo="?function"
|
typeInfo="?function"
|
||||||
|
|||||||
Reference in New Issue
Block a user