mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Replace React.createClass with create-react-class
Summary: This replaces all uses of `React.createClass` with `createReactClass` from the `create-react-class` package, attempting to match use of `var` and `const` according to local style. Fixes #14620 Refs #14712 Closes https://github.com/facebook/react-native/pull/14729 Differential Revision: D5321810 Pulled By: hramos fbshipit-source-id: ae7b40640b2773fd89c3fb727ec87f688bebf585
This commit is contained in:
committed by
Hector Ramos
parent
e76eb32058
commit
82fc0f3714
@@ -20,6 +20,7 @@ var RNTesterPage = require('RNTesterPage');
|
||||
var TimerMixin = require('react-timer-mixin');
|
||||
|
||||
var MovingBar = createReactClass({
|
||||
displayName: 'MovingBar',
|
||||
mixins: [TimerMixin],
|
||||
|
||||
getInitialState: function() {
|
||||
|
||||
Reference in New Issue
Block a user