Commit 08ea8fa
committed
fix: make
When we pass arrow function component, it will throw error because
in `createAnimatedComponent` we check
`Component.prototype.isReactComponent` to check if it's component
created by `create-react-class`, but arrow function doesn't
have `.prototype` property. This commit additionally check if
`.prototype` exists.animated work with arrow function component1 parent 162b2be commit 08ea8fa
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
0 commit comments