[change] use 'prop-types' and 'create-react-class'

Preparation for React 15.5
This commit is contained in:
Nicolas Gallagher
2017-04-11 22:20:31 -07:00
parent 941c628445
commit 170bab659d
44 changed files with 290 additions and 245 deletions

View File

@@ -1,3 +1,4 @@
import createReactClass from 'create-react-class';
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { Animated, StyleSheet, Text, View } from 'react-native'
@@ -24,7 +25,7 @@ import { Animated, StyleSheet, Text, View } from 'react-native'
* @flow
*/
var Flip = React.createClass({
var Flip = createReactClass({
getInitialState() {
return {
theta: new Animated.Value(45),