Skip to content

Commit

Permalink
[fix] Schema prop types
Browse files Browse the repository at this point in the history
  • Loading branch information
necolas committed Mar 13, 2019
1 parent 97372d7 commit f507410
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
8 changes: 5 additions & 3 deletions packages/react-native-web/src/exports/Text/TextPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
16 changes: 10 additions & 6 deletions packages/react-native-web/src/exports/View/ViewPropTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f507410

Please sign in to comment.