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 2.0.3 to 2.0.4

4

HISTORY.md
# Changelog
## 2.0.4 / 2018-05-22
* [[79fe35a](http://gitlab.alibaba-inc.com/nuke/refresh-control/commit/79fe35ac7a3b191e76f799e2b3111e18c72a7bc8)] - `fix` replace id with ref
## 2.0.3 / 2018-05-09

@@ -5,0 +9,0 @@

10

lib/view/web.js

@@ -111,3 +111,3 @@ 'use strict';

if (!this.dom) {
this.dom = (0, _rax.findDOMNode)('webRefresh');
this.dom = (0, _rax.findDOMNode)(this.refs.webRefresh);
}

@@ -141,3 +141,3 @@ return this.dom;

value: function addAnim() {
(0, _rax.setNativeProps)('webRefresh', { className: 'refreshAnim' });
(0, _rax.setNativeProps)(this.dom, { className: 'refreshAnim' });
}

@@ -147,3 +147,3 @@ }, {

value: function removeAnim() {
(0, _rax.setNativeProps)('webRefresh', { className: '' });
(0, _rax.setNativeProps)(this.dom, { className: '' });
}

@@ -157,3 +157,3 @@

/**
* 仿 ios 下拉刷新逻辑
* 仿 iOS 下拉刷新逻辑
* 只有超过 refreshControl 的高度后才可以触发时间。

@@ -187,3 +187,3 @@ * 并执行快速回弹到固定高度的,继而按照动画回弹。

_nukeView2.default,
{ id: 'webRefresh', style: refreshStyle },
{ ref: 'webRefresh', style: refreshStyle },
this.props.children

@@ -190,0 +190,0 @@ );

{
"name": "nuke-refresh-control",
"version": "2.0.3",
"version": "2.0.4",
"description": "下拉刷新组件",

@@ -5,0 +5,0 @@ "main": "lib/index",

@@ -31,3 +31,3 @@ /** @jsx createElement */

if (!this.dom) {
this.dom = findDOMNode('webRefresh');
this.dom = findDOMNode(this.refs.webRefresh);
}

@@ -53,6 +53,6 @@ return this.dom;

addAnim() {
setNativeProps('webRefresh', { className: 'refreshAnim' });
setNativeProps(this.dom, { className: 'refreshAnim' });
}
removeAnim() {
setNativeProps('webRefresh', { className: '' });
setNativeProps(this.dom, { className: '' });
}

@@ -81,3 +81,3 @@

/**
* 仿 ios 下拉刷新逻辑
* 仿 iOS 下拉刷新逻辑
* 只有超过 refreshControl 的高度后才可以触发时间。

@@ -170,3 +170,3 @@ * 并执行快速回弹到固定高度的,继而按照动画回弹。

return (
<View id="webRefresh" style={refreshStyle}>
<View ref="webRefresh" style={refreshStyle}>
{this.props.children}

@@ -173,0 +173,0 @@ </View>

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