Skip to content

Commit

Permalink
Merge pull request #243 from coderafei/master
Browse files Browse the repository at this point in the history
Switch to 'prop-types' instead of React.PropTypes
Fix error 'db.batchUpdates undefined is not a function'. Issue #183
  • Loading branch information
Nauzer authored Jul 2, 2017
2 parents 6704655 + eabb041 commit 02e1c9f
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 12 deletions.
2 changes: 1 addition & 1 deletion example/RNApp/app/containers/connection.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {PropTypes} from 'react';
import React from 'react';
import Meteor, {createContainer} from 'react-native-meteor';
import ConnectionComponent from '../routes/connection';

Expand Down
2 changes: 1 addition & 1 deletion example/RNApp/app/containers/meteorComplexListView.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {PropTypes} from 'react';
import React from 'react';
import Meteor, {createContainer} from 'react-native-meteor';
import MetorComplexListViewComponent from '../routes/meteorComplexListView';

Expand Down
2 changes: 1 addition & 1 deletion example/RNApp/app/containers/meteorListView.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Meteor, {createContainer} from 'react-native-meteor';
import React, {PropTypes} from 'react';
import React from 'react';
import MeteorListViewComponent from '../routes/meteorListView';

export default MeteorListViewContainer = createContainer(ownProps => {
Expand Down
3 changes: 2 additions & 1 deletion example/RNApp/app/routes/accounts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Text, StyleSheet, TextInput, Dimensions } from 'react-native';
import Meteor, { connectMeteor, Accounts } from 'react-native-meteor';
import Button from '../components/button';
Expand Down
3 changes: 2 additions & 1 deletion example/RNApp/app/routes/connection.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Text, StyleSheet } from 'react-native';
import Meteor, { connectMeteor } from 'react-native-meteor';

Expand Down
3 changes: 2 additions & 1 deletion example/RNApp/app/routes/meteorListView.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
import Meteor, { connectMeteor, MeteorListView } from 'react-native-meteor';
import Button from '../components/button';
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@
"crypto-js": "^3.1.6",
"ejson": "^2.1.2",
"minimongo-cache": "0.0.48",
"prop-types": "^15.5.10",
"react-komposer": "^1.8.0",
"react-mixin": "^3.0.3",
"trackr": "^2.0.2",
"wolfy87-eventemitter": "^4.3.0",
"underscore": "^1.8.3"
"underscore": "^1.8.3",
"wolfy87-eventemitter": "^4.3.0"
},
"devDependencies": {
"babel-core": "^6.7.2",
Expand Down
3 changes: 2 additions & 1 deletion src/CollectionFS/FSCollectionImagesPreloader.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, Image, StyleSheet } from 'react-native';


Expand Down
2 changes: 1 addition & 1 deletion src/Data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ReactNative from 'react-native';
import ReactNative from 'react-native/Libraries/Renderer/src/renderers/native/ReactNative';
import minimongo from 'minimongo-cache';
import Trackr from 'trackr';
import { InteractionManager } from 'react-native';
Expand Down
3 changes: 2 additions & 1 deletion src/components/ComplexListView.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ListView } from 'react-native';


Expand Down
3 changes: 2 additions & 1 deletion src/components/ListView.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { ListView } from 'react-native';

import Data from '../Data';
Expand Down

0 comments on commit 02e1c9f

Please sign in to comment.