Skip to content

Commit

Permalink
wrap thumnail and icon in a view
Browse files Browse the repository at this point in the history
  • Loading branch information
Himanshu Satija authored and Himanshu Satija committed Apr 25, 2016
1 parent b4e1347 commit 3c9d0dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Components/Widgets/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ export default class ListItemNB extends NativeBaseComponent {
else {
var newChildren = [];
if(!Array.isArray(this.props.children)) {
newChildren.push(React.cloneElement(this.props.children, this.getChildProps(this.props.children)));
newChildren.push(
<View>
{React.cloneElement(this.props.children, this.getChildProps(this.props.children))}
</View>
);
}
else {
var childrenArray = React.Children.toArray(this.props.children);
Expand Down

0 comments on commit 3c9d0dc

Please sign in to comment.