mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-07 22:41:39 +08:00
[change] use 'prop-types' and 'create-react-class'
Preparation for React 15.5
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user