Skip to content

Commit

Permalink
0.0.32
Browse files Browse the repository at this point in the history
  • Loading branch information
sonaye committed Oct 25, 2018
1 parent a824cef commit 48d49bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.0.31
# 0.0.32

- Support `delay` in animation config.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"license": "MIT",
"name": "haraka",
"description": "Stateful animations in React Native.",
"version": "0.0.31",
"version": "0.0.32",
"main": "lib/index.js",
"repository": {
"type": "git",
Expand Down
6 changes: 5 additions & 1 deletion src/behavior.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,11 @@ export default class Behavior extends React.PureComponent {

this.key = state

const animationRef = animate(state)
let animationRef = animate(state)

if (delay) {
animationRef = Animated.sequence([Animated.delay(delay), animationRef])
}

if (ref) return animationRef

Expand Down

0 comments on commit 48d49bb

Please sign in to comment.