Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
iRoachie committed Sep 26, 2019
2 parents e1bc867 + 9c67b92 commit 89c6c7a
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 16 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-elements",
"version": "1.2.1",
"version": "1.2.2",
"description": "React Native Elements & UI Toolkit",
"main": "src/index.js",
"types": "src/index.d.ts",
Expand Down Expand Up @@ -43,6 +43,7 @@
},
"devDependencies": {
"@react-native-community/eslint-config": "^0.0.5",
"@types/prop-types": "^15.7.3",
"@types/react": "^16.4.16",
"@types/react-native": "^0.57.4",
"babel-jest": "^24.8.0",
Expand Down
2 changes: 1 addition & 1 deletion src/avatar/Avatar.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ Avatar.propTypes = {
placeholderStyle: ViewPropTypes.style,
renderPlaceholderContent: nodeType,
imageProps: PropTypes.object,
ImageComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
ImageComponent: PropTypes.elementType,
};

Avatar.defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/badge/Badge.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Badge.propTypes = {
textStyle: Text.propTypes.style,
value: PropTypes.node,
onPress: PropTypes.func,
Component: PropTypes.func,
Component: PropTypes.elementType,
theme: PropTypes.object,
status: PropTypes.oneOf(['primary', 'success', 'warning', 'error']),
};
Expand Down
4 changes: 2 additions & 2 deletions src/buttons/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ Button.propTypes = {
iconContainerStyle: ViewPropTypes.style,
iconRight: PropTypes.bool,
linearGradientProps: PropTypes.object,
TouchableComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
ViewComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
TouchableComponent: PropTypes.elementType,
ViewComponent: PropTypes.elementType,
disabled: PropTypes.bool,
disabledStyle: ViewPropTypes.style,
disabledTitleStyle: Text.propTypes.style,
Expand Down
2 changes: 1 addition & 1 deletion src/buttons/ButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const styles = {

ButtonGroup.propTypes = {
button: PropTypes.object,
Component: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
Component: PropTypes.elementType,
onPress: PropTypes.func,
buttons: PropTypes.array,
containerStyle: ViewPropTypes.style,
Expand Down
2 changes: 1 addition & 1 deletion src/checkbox/CheckBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const CheckBox = props => {
};
CheckBox.propTypes = {
...CheckBoxIcon.propTypes,
Component: PropTypes.oneOfType([PropTypes.object, PropTypes.func]),
Component: PropTypes.elementType,
iconRight: PropTypes.bool,
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
titleProps: PropTypes.object,
Expand Down
2 changes: 1 addition & 1 deletion src/header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Header.propTypes = {
]),
theme: PropTypes.object,
linearGradientProps: PropTypes.object,
ViewComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
ViewComponent: PropTypes.elementType,
};

Header.defaultProps = {
Expand Down
2 changes: 1 addition & 1 deletion src/icons/Icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Icon.propTypes = {
name: PropTypes.string,
size: PropTypes.number,
color: PropTypes.string,
Component: PropTypes.func,
Component: PropTypes.elementType,
underlayColor: PropTypes.string,
reverse: PropTypes.bool,
raised: PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion src/image/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const styles = {

Image.propTypes = {
...ImageNative.propTypes,
ImageComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
ImageComponent: PropTypes.elementType,
PlaceholderContent: nodeType,
containerStyle: ViewPropTypes.style,
placeholderStyle: ImageNative.propTypes.style,
Expand Down
6 changes: 3 additions & 3 deletions src/list/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ ListItem.propTypes = {
containerStyle: ViewPropTypes.style,
contentContainerStyle: ViewPropTypes.style,
rightContentContainerStyle: ViewPropTypes.style,
Component: PropTypes.func,
Component: PropTypes.elementType,
onPress: PropTypes.func,
onLongPress: PropTypes.func,
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
Expand Down Expand Up @@ -339,7 +339,7 @@ ListItem.propTypes = {
bottomDivider: PropTypes.bool,
pad: PropTypes.number,
linearGradientProps: PropTypes.object,
ViewComponent: PropTypes.func,
ViewComponent: PropTypes.elementType,
theme: PropTypes.object,
};

Expand All @@ -366,7 +366,7 @@ const PadView = ({ children, pad, Component, ...props }) => {
PadView.propTypes = {
children: PropTypes.node,
pad: PropTypes.number,
Component: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
Component: PropTypes.elementType,
};

export { ListItem };
Expand Down
2 changes: 1 addition & 1 deletion src/social/SocialIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const SocialIcon = props => {
};

SocialIcon.propTypes = {
Component: PropTypes.func,
Component: PropTypes.elementType,
type: PropTypes.string,
button: PropTypes.bool,
onPress: PropTypes.func,
Expand Down
2 changes: 1 addition & 1 deletion src/tile/FeaturedTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ FeaturedTile.propTypes = {
captionStyle: NativeText.propTypes.style,
width: PropTypes.number,
height: PropTypes.number,
ImageComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
ImageComponent: PropTypes.elementType,
imageProps: PropTypes.object,
};

Expand Down
2 changes: 1 addition & 1 deletion src/tile/Tile.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ Tile.propTypes = {
contentContainerStyle: ViewPropTypes.style,
titleNumberOfLines: PropTypes.number,
imageProps: PropTypes.object,
ImageComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),
ImageComponent: PropTypes.elementType,
};

Tile.defaultProps = {
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,11 @@
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.5.6.tgz#9c03d3fed70a8d517c191b7734da2879b50ca26c"
integrity sha512-ZBFR7TROLVzCkswA3Fmqq+IIJt62/T7aY/Dmz+QkU7CaW2QFqAitCE8Ups7IzmGhcN1YWMBT4Qcoc07jU9hOJQ==

"@types/prop-types@^15.7.3":
version "15.7.3"
resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.3.tgz#2ab0d5da2e5815f94b0b9d4b95d1e5f243ab2ca7"
integrity sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==

"@types/react-native-vector-icons@^6.4.1":
version "6.4.1"
resolved "https://registry.yarnpkg.com/@types/react-native-vector-icons/-/react-native-vector-icons-6.4.1.tgz#d0862f3eb97bbe5720ab604f2f10ee07dacb31ef"
Expand Down

0 comments on commit 89c6c7a

Please sign in to comment.