react-native-meteor
Advanced tools
Comparing version 1.0.0-rc1 to 1.0.0-rc2
{ | ||
"name": "react-native-meteor", | ||
"version": "1.0.0-rc1", | ||
"version": "1.0.0-rc2", | ||
"description": "Full Meteor Client for React Native", | ||
"main": "src/Meteor.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "mocha --compilers js:babel-core/register --require test/setup --recursive" | ||
}, | ||
@@ -36,3 +36,13 @@ "repository": { | ||
"wolfy87-eventemitter": "^4.3.0" | ||
}, | ||
"devDependencies": { | ||
"babel-core": "^6.7.2", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-preset-react": "^6.5.0", | ||
"babel-preset-stage-0": "^6.5.0", | ||
"chai": "^3.5.0", | ||
"mocha": "^2.4.5", | ||
"mock-socket": "^2.0.0", | ||
"sinon": "^1.17.3" | ||
} | ||
} |
@@ -155,2 +155,3 @@ # react-native-meteor [](https://www.npmjs.org/package/react-native-meteor) [](http://badge.fury.io/js/react-native-meteor) [](https://david-dm.org/inProgress-team/react-native-meteor) | ||
- `options` **object** | ||
- `listViewRef` [**string** / **function**] ref to ListView component. | ||
@@ -175,2 +176,3 @@ | ||
- `elements` **function** *required* : a reactive function which returns an array of elements. | ||
- `listViewRef` [**string** / **function**] ref to ListView component. | ||
@@ -177,0 +179,0 @@ ### Example usage |
@@ -16,3 +16,4 @@ 'use strict'; | ||
elements: PropTypes.func.isRequired, | ||
renderRow: PropTypes.func.isRequired | ||
renderRow: PropTypes.func.isRequired, | ||
listViewRef: PropTypes.oneOfType([ PropTypes.func, PropTypes.string ]) | ||
}; | ||
@@ -57,6 +58,8 @@ constructor(props) { | ||
const { ds } = this.state; | ||
const { listViewRef, ...props } = this.props; | ||
return ( | ||
<ListView | ||
{...this.props} | ||
{...props} | ||
ref={listViewRef} | ||
dataSource={ds} | ||
@@ -63,0 +66,0 @@ /> |
@@ -18,3 +18,4 @@ 'use strict'; | ||
options: PropTypes.oneOfType([ PropTypes.string, PropTypes.object ]), | ||
renderRow: PropTypes.func.isRequired | ||
renderRow: PropTypes.func.isRequired, | ||
listViewRef: PropTypes.oneOfType([ PropTypes.func, PropTypes.string ]) | ||
}; | ||
@@ -64,6 +65,8 @@ static defaultProps = { | ||
const { ds } = this.state; | ||
const { listViewRef, ...props } = this.props; | ||
return ( | ||
<ListView | ||
{...this.props} | ||
{...props} | ||
ref={listViewRef} | ||
dataSource={ds} | ||
@@ -70,0 +73,0 @@ /> |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No tests
QualityPackage does not have any tests. This is a strong signal of a poorly maintained or low quality package.
Found 1 instance in 1 package
53650
28
1299
1
255
0
8