Skip to content

Commit

Permalink
Update createAnimatedComponent to be compatible with react 16.4 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kmagiera committed Jul 10, 2018
1 parent 1701f39 commit cc4ab7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/createAnimatedComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function listener(data) {

export default function createAnimatedComponent(Component) {
invariant(
typeof Component === 'string' ||
typeof Component !== 'function' ||
(Component.prototype && Component.prototype.isReactComponent),
'`createAnimatedComponent` does not support stateless functional components; ' +
'use a class component instead.'
Expand Down

0 comments on commit cc4ab7f

Please sign in to comment.