react-super-components
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.Animations = exports.Layout = exports.Stack = exports.permanentlySubscribe = exports.Subscriptions = exports.List = exports.Image = undefined; | ||
exports.Animations = exports.Layout = exports.Stack = exports.permanentlySubscribe = exports.Subscriptions = exports.RegularList = exports.List = exports.Image = undefined; | ||
@@ -17,2 +17,6 @@ var _Image = require('./Image.js'); | ||
var _RegularList = require('./RegularList.js'); | ||
var _RegularList2 = _interopRequireDefault(_RegularList); | ||
var _Subscriptions = require('./Subscriptions.js'); | ||
@@ -38,2 +42,3 @@ | ||
exports.List = _List2.default; | ||
exports.RegularList = _RegularList2.default; | ||
exports.Subscriptions = _Subscriptions2.default; | ||
@@ -40,0 +45,0 @@ exports.permanentlySubscribe = _Subscriptions.permanentlySubscribe; |
@@ -116,3 +116,7 @@ 'use strict'; | ||
key: 'rowRenderer', | ||
value: function rowRenderer(index, data) { | ||
value: function rowRenderer(_ref) { | ||
var index = _ref.index; | ||
var data = _ref.data; | ||
var hasKey = _ref.hasKey; | ||
var itemType = this.checkTypesAndReturnMatchingItemType(index, data); | ||
@@ -122,2 +126,6 @@ var ListItemComponent = itemType.component; | ||
if (hasKey) { | ||
props.key = index; | ||
} | ||
return _react2.default.createElement(ListItemComponent, props); | ||
@@ -146,5 +154,5 @@ } | ||
null, | ||
function (_ref) { | ||
var height = _ref.height; | ||
var width = _ref.width; | ||
function (_ref2) { | ||
var height = _ref2.height; | ||
var width = _ref2.width; | ||
return _react2.default.createElement(_reactVirtualized.VirtualScroll, { | ||
@@ -154,4 +162,4 @@ className: className, | ||
overscanRowsCount: thresholdRows, | ||
ref: function ref(_ref2) { | ||
_this2._virtualScroll = _ref2; | ||
ref: function ref(_ref3) { | ||
_this2._virtualScroll = _ref3; | ||
}, | ||
@@ -163,3 +171,3 @@ rowsCount: data.length, | ||
rowRenderer: function rowRenderer(index) { | ||
return _this2.rowRenderer(index, data); | ||
return _this2.rowRenderer({ index: index, data: data }); | ||
}, | ||
@@ -166,0 +174,0 @@ scrollToIndex: _this2.props.scrollIndex, |
@@ -46,3 +46,3 @@ { | ||
}, | ||
"version": "1.1.0" | ||
"version": "1.2.0" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78960
25
1175