Skip to content
This repository has been archived by the owner on Nov 27, 2021. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusuke Shibata committed Nov 25, 2017
1 parent 0af3fd9 commit 2864d76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/component/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ const styles = StyleSheet.create({
backgroundColor: 'red'
},
text: {
color: 'white',
color: 'white'
}
})

export default (props, state, children) => [
<View
key='pull'
style={Stylesheet.flatten([
style={StyleSheet.flatten([
styles.comp,
state.refreshing && styles.refreshing,
state.refreshed && styles.refreshed,
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ PullRefresh.propTypes = {
onRefresh: PropTypes.func,
max: PropTypes.number,
style: PropTypes.object,
disabled: PropTypes.bool,
disabled: PropTypes.bool
// offset: PropTypes.number,
// color: PropTypes.string,
// size: PropTypes.number,
Expand All @@ -104,7 +104,7 @@ PullRefresh.defaultProps = {
as: 'div',
max: 100,
style: {},
disabled: false,
disabled: false
// color: '#000000',
// offset: 0,
// size: 40,
Expand Down
4 changes: 2 additions & 2 deletions src/spring.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ export default class Spring {
this._loop = true

await loop(async () => {
await sleep(1000/60)
await sleep(1000 / 60)
if(this._paused) return true
// dummy -> use tention,friction
const dv = (this._endValue - this._value)/5
const dv = (this._endValue - this._value) / 5
this.setValue(this._value + dv)
return Math.abs(dv) > 0.1
})
Expand Down

0 comments on commit 2864d76

Please sign in to comment.