Skip to content
This repository was archived by the owner on Aug 23, 2022. It is now read-only.

Commit 1543883

Browse files
authored
FIX - in [email protected] ReactNative View is an Object
When updating to [email protected], I get an error because of bad proptype for wrapper. In ReactNative, the Error component gets a View wrapper by default. When View get a `function` type in [email protected] it gets an `object` type in [email protected] which give me an error. I'm not sure it's the only component which will have the problem.
1 parent 904aea8 commit 1543883

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/errors-component.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const propTypes = {
4040
PropTypes.string,
4141
PropTypes.func,
4242
PropTypes.element,
43+
PropTypes.object,
4344
]),
4445
component: PropTypes.oneOfType([
4546
PropTypes.string,

0 commit comments

Comments
 (0)