Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nuke-refresh-control

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuke-refresh-control - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

lib/view/add-style.js

25

lib/index.js

@@ -7,2 +7,4 @@ 'use strict';

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();

@@ -14,12 +16,6 @@

var _nukeEnv2 = _interopRequireDefault(_nukeEnv);
var _web = require('./view/web');
var _raxRefreshcontrol = require('rax-refreshcontrol');
var _web2 = _interopRequireDefault(_web);
var _raxRefreshcontrol2 = _interopRequireDefault(_raxRefreshcontrol);
var _nukeView = require('nuke-view');
var _nukeView2 = _interopRequireDefault(_nukeView);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -34,6 +30,2 @@

var isWeex = _nukeEnv2.default.isWeex,
isWeb = _nukeEnv2.default.isWeb,
appInfo = _nukeEnv2.default.appInfo;
var RefreshControl = function (_Component) {

@@ -51,7 +43,7 @@ _inherits(RefreshControl, _Component);

value: function render() {
if (isWeex) {
return (0, _rax.createElement)(_raxRefreshcontrol2.default, this.props);
} else {
return (0, _rax.createElement)(_nukeView2.default, this.props);
if (_nukeEnv.isWeex) {
var displayRefresh = this.props.refreshing ? 'show' : 'hide';
return (0, _rax.createElement)('refresh', _extends({}, this.props, { display: displayRefresh }));
}
return (0, _rax.createElement)(_web2.default, this.props);
}

@@ -63,3 +55,4 @@ }]);

RefreshControl.displayName = 'RefreshControl';
exports.default = RefreshControl;
module.exports = exports['default'];
{
"name": "nuke-refresh-control",
"version": "0.0.6",
"version": "0.0.7",
"description": "含 h5 版本的下拉刷新组件",
"main": "lib/index",
"files": ["lib", "docs", "theme", "README.md", "HISTORY.md"],
"keywords": ["nuke", "pull-to-refresh", "refresh-control"],
"files": [
"lib",
"docs",
"theme",
"README.md",
"HISTORY.md"
],
"keywords": [
"nuke",
"pull-to-refresh",
"refresh-control"
],
"author": {

@@ -39,4 +49,3 @@ "name": "leanhunter",

"nuke-view": "^0.x.x",
"nuke-env": "^0.x.x",
"rax-refreshcontrol": "^0.4.20"
"nuke-env": "^0.x.x"
},

@@ -43,0 +52,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc