Skip to content

Commit e2a72bf

Browse files
committed
fix(invalid-props-avatar): Updated proptypes for Avatar containerStyles
1 parent c8bc3ec commit e2a72bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Avatar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const propTypes = {
1212
imageStyles: PropTypes.arrayOf(PropTypes.object),
1313

1414
/** Extra styles to pass to View wrapper */
15-
containerStyles: PropTypes.arrayOf(PropTypes.object),
15+
containerStyles: PropTypes.oneOfType([PropTypes.object, PropTypes.arrayOf(PropTypes.object)]),
1616

1717
/** Set the size of Avatar */
1818
size: PropTypes.oneOf(['default', 'small']),

0 commit comments

Comments
 (0)