Janic Duplessis 10b642a7af Verify that the component passed to createAnimatedComponent is not functional
Summary:
Stateless functional components don't support refs and we need that for the component to work, it used to crash with this error message: `undefined is not an object (evaluating 'this._component.getScrollableNode')`. This makes it clear what the issue is.

Fixes some of the errors in #10635, not sure if it fixes all the cases described in the issue though.

**Test plan**
Tested that passing a component with createClass or extends Component works but passing a function causes an error.

[GENERAL] [ENHANCEMENT] [Animated] - Verify that the component passed to createAnimatedComponent is not functional
Closes https://github.com/facebook/react-native/pull/15019

Differential Revision: D6988096

Pulled By: sahrens

fbshipit-source-id: ec0ffa763245e786f44b4a1d56c0738876c25782
2018-02-14 08:02:48 -08:00
..
2017-12-13 16:19:21 -08:00
2018-02-13 01:49:56 -08:00
2017-12-19 19:46:06 -08:00
2018-02-10 10:51:14 -08:00
2018-02-12 18:50:21 -08:00
2016-11-02 12:29:15 -07:00
2017-11-10 21:15:48 -08:00
2018-01-31 10:17:22 -08:00
2018-02-01 12:13:07 -08:00
2018-02-13 14:36:37 -08:00
2018-01-29 19:17:33 -08:00
2017-09-06 03:33:43 -07:00
2018-02-13 22:17:21 -08:00