Skip to content

Commit 1b068bd

Browse files
osdnkferrannp
authored andcommitted
fix: remove useless waring while overriding children' style (#87)
1 parent ef8e732 commit 1b068bd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

js/utils.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ export const childrenWithOverriddenStyle = (
3636
],
3737
collapsable: false,
3838
};
39-
if (
40-
child.type &&
41-
child.type.displayName &&
42-
child.type.displayName !== 'RCTView' &&
43-
child.type.displayName !== 'View'
44-
) {
45-
console.warn(
46-
'Each ViewPager child must be a <View>. Was ' + child.type.displayName,
47-
);
48-
}
4939
return React.createElement(child.type, newProps);
5040
});
5141
};

0 commit comments

Comments
 (0)