diff --git a/package.json b/package.json index 9e71f2b..408516b 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "homepage": "https://github.com/inProgress-team/react-native-meteor#readme", "dependencies": { "base-64": "^0.1.0", + "create-react-class": "^15.6.0", "crypto-js": "^3.1.6", "ejson": "^2.1.2", "minimongo-cache": "0.0.48", diff --git a/src/components/createContainer.js b/src/components/createContainer.js index 6ca482f..040df15 100644 --- a/src/components/createContainer.js +++ b/src/components/createContainer.js @@ -3,6 +3,7 @@ */ import React from 'react'; +import createReactClass from 'create-react-class'; import Mixin from './Mixin'; @@ -18,7 +19,7 @@ export default function createContainer(options = {}, Component) { getMeteorData } = expandedOptions; - return React.createClass({ + return createReactClass({ displayName: 'MeteorDataContainer', mixins: [Mixin], getMeteorData() {