nuke-scroll-view
Advanced tools
Comparing version 0.0.3 to 1.0.0
@@ -69,4 +69,4 @@ # ScrollView demo | ||
<ScrollView ref="vscroller" style={styles.vscroller} onEndReachedThreshold={20} onEndReached={this.loadmore}> | ||
<RefreshControl refreshing={this.state.isRefreshing} style={[styles.itemRefresh]} onRefresh={this.handleRefresh}> | ||
<Text style={{fontSize:"28rem",color:"#3089dc"}}>{this.state.refreshText}</Text> | ||
<RefreshControl JDYHeaderStyle="endAnamtionStyle" refreshing={this.state.isRefreshing} style={[styles.itemRefresh]} onRefresh={this.handleRefresh}> | ||
</RefreshControl> | ||
@@ -85,3 +85,3 @@ {this.getViews()} | ||
width:750, | ||
height:100, | ||
height:200, | ||
alignItems:'center', | ||
@@ -88,0 +88,0 @@ justifyContent:'center', |
@@ -18,3 +18,3 @@ # ScrollView demo 事件 | ||
import Modal from 'nuke-modal'; | ||
import BizPage from 'nuke-biz-page'; | ||
import Page from 'nuke-page'; | ||
@@ -41,2 +41,5 @@ let App = class NukeDemoIndex extends Component { | ||
} | ||
scrollHandler=(e)=>{ | ||
console.log(e); | ||
} | ||
reset = ()=>{ | ||
@@ -52,5 +55,5 @@ | ||
return ( | ||
<BizPage title="ScrollView"> | ||
<BizPage.Intro main="events"></BizPage.Intro> | ||
<ScrollView ref="scroller1" style={styles.scroller} disabledPtr={true} onEndReachedThreshold={20} onEndReached={this.loadmore}> | ||
<Page title="ScrollView"> | ||
<Page.Intro main="events"></Page.Intro> | ||
<ScrollView onScroll={this.scrollHandler} ref="scroller1" style={styles.scroller} disabledPtr={true} onEndReachedThreshold={20} onEndReached={this.loadmore}> | ||
{this.getViews()} | ||
@@ -62,3 +65,3 @@ </ScrollView> | ||
</Button.Group> | ||
</BizPage> | ||
</Page> | ||
) | ||
@@ -65,0 +68,0 @@ } |
# Changelog | ||
## 1.0.0 / 2017-11-04 | ||
* [[1eadac1](http://gitlab.alibaba-inc.com/nuke/scroll-view/commit/1eadac196df8cd5bdf290fa34a63ac58d561296d)] - `feat` view dependency update | ||
## 0.0.3 / 2017-06-16 | ||
@@ -5,0 +9,0 @@ |
@@ -227,6 +227,8 @@ 'use strict'; | ||
if (childLayoutProps.length !== 0) {} | ||
if (childLayoutProps.length !== 0) { | ||
console.warn('ScrollView child layout (' + JSON.stringify(childLayoutProps) + ') must be applied through the contentContainerStyle prop.'); | ||
} | ||
} | ||
var refreshContainer = _rax.createElement(_nukeView2.default, null), | ||
var refreshContainer = (0, _rax.createElement)(_nukeView2.default, null), | ||
contentChild = void 0; | ||
@@ -246,3 +248,3 @@ if (Array.isArray(children)) { | ||
var contentContainer = _rax.createElement( | ||
var contentContainer = (0, _rax.createElement)( | ||
_nukeView2.default, | ||
@@ -262,3 +264,3 @@ { | ||
if (isWeex) { | ||
return _rax.createElement( | ||
return (0, _rax.createElement)( | ||
'scroller', | ||
@@ -303,3 +305,3 @@ _extends({}, this.props, { | ||
if (this.props.disabledPtr) { | ||
return _rax.createElement( | ||
return (0, _rax.createElement)( | ||
_nukeView2.default, | ||
@@ -310,3 +312,3 @@ webProps, | ||
} | ||
return _rax.createElement( | ||
return (0, _rax.createElement)( | ||
_nukeView2.default, | ||
@@ -313,0 +315,0 @@ webProps, |
{ | ||
"name": "nuke-scroll-view", | ||
"version": "0.0.3", | ||
"version": "1.0.0", | ||
"description": "滚动组件", | ||
@@ -48,9 +48,9 @@ "main": "lib/index", | ||
"hammerjs": "^2.0.8", | ||
"nuke-env": "^0.x.x", | ||
"nuke-refresh-control": "^0.x.x", | ||
"nuke-view": "^0.x.x" | ||
"nuke-env": "^1.x.x", | ||
"nuke-refresh-control": "^1.x.x", | ||
"nuke-view": "^1.x.x" | ||
}, | ||
"devDependencies": { | ||
"nuke-biz-page": "^0.0.7", | ||
"nuke-button": "^0.x.x", | ||
"nuke-page": "^1.x.x", | ||
"nuke-button": "^1.x.x", | ||
"nuke-modal": "^0.x.x", | ||
@@ -57,0 +57,0 @@ "nuke-text": "^0.x.x" |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
32572
576
1
+ Addednuke-env@1.0.1(transitive)
+ Addednuke-helper@0.0.11(transitive)
+ Addednuke-refresh-control@1.0.3(transitive)
+ Addednuke-view@1.0.7(transitive)
+ Addedstyle-unit@0.4.20(transitive)
+ Addedua-parser-js@0.7.39(transitive)
- Removednuke-core@0.3.5(transitive)
- Removednuke-env@0.3.6(transitive)
- Removednuke-refresh-control@0.0.7(transitive)
- Removednuke-var-loader@0.1.5(transitive)
- Removednuke-vars@0.0.4(transitive)
- Removednuke-view@0.0.3(transitive)
Updatednuke-env@^1.x.x
Updatednuke-refresh-control@^1.x.x
Updatednuke-view@^1.x.x