[fix] Schema prop types

Ref 34427897f3
This commit is contained in:
Nicolas Gallagher
2019-03-12 17:43:22 -07:00
parent 97372d7e4c
commit f507410ab4
3 changed files with 20 additions and 12 deletions
@@ -32,9 +32,11 @@ const TextPropTypes = {
testID: string,
// web extensions
onContextMenu: func,
itemprop: string,
itemscope: string,
itemtype: string
itemID: string,
itemRef: string,
itemProp: string,
itemScope: string,
itemType: string
};
export default TextPropTypes;
+10 -6
View File
@@ -69,9 +69,11 @@ export type ViewProps = {
testID?: string,
// web extensions
onContextMenu?: Function,
itemprop?: string,
itemscope?: string,
itemtype?: string,
itemID?: string,
itemRef?: string,
itemProp?: string,
itemScope?: string,
itemType?: string,
// compatibility with React Native
accessibilityViewIsModal?: boolean,
collapsable?: boolean,
@@ -136,9 +138,11 @@ const ViewPropTypes = {
testID: string,
// web extensions
onContextMenu: func,
itemprop: string,
itemscope: string,
itemtype: string,
itemID: string,
itemRef: string,
itemProp: string,
itemScope: string,
itemType: string,
// compatibility with React Native
accessibilityViewIsModal: bool,
collapsable: bool,
@@ -58,9 +58,11 @@ const supportedProps = {
// unstable escape-hatches for web
className: true,
href: true,
itemprop: true,
itemscope: true,
itemtype: true,
itemID: true,
itemRef: true,
itemProp: true,
itemScope: true,
itemType: true,
onClick: true,
onClickCapture: true,
rel: true,