diff --git a/CHANGELOG.md b/CHANGELOG.md index b27eb82..cb41af0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 0.0.20 +# 0.0.21 - **Breaking**: Project has been renamed to `haraka`. You can continue to use [`react-native-behavior`](https://www.npmjs.com/package/react-native-behavior) if you are already using it in a project (has been stable for over a year), it will not reacive any future updates however and has been deprecated. - **Breaking**: `animatedNativeValue` prop is now `nativeDriver`. @@ -16,6 +16,7 @@ - You can now use an animation or a layout preset from the available presets, see [the definition](../../#definition) for options. - You can now get the animation reference instead of playing it immediately with the `ref` option in `goTo()` configuration. This can be useful for composing multiple behavior animations with `Animated.sequence` and `Animated.parallel`. +- You can pass a `pointerEvents` prop to the behavior view. - Used Rollup to bundle the package. # 0.0.19 diff --git a/package.json b/package.json index c1b4dcf..57bca5c 100755 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "license": "MIT", "name": "haraka", "description": "Stateful animations in React Native.", - "version": "0.0.20", + "version": "0.0.21", "main": "lib/index.js", "repository": { "type": "git", diff --git a/src/behavior.js b/src/behavior.js index 54eda66..53f9f00 100644 --- a/src/behavior.js +++ b/src/behavior.js @@ -81,6 +81,7 @@ export default class Behavior extends React.PureComponent { indices, initialState, onGesture, + pointerEvents, style, swipeDistanceThreshold, swipeVelocityThreshold, @@ -262,7 +263,7 @@ export default class Behavior extends React.PureComponent { if (enableGestures) { return ( - + {children} @@ -271,7 +272,7 @@ export default class Behavior extends React.PureComponent { } return ( - + {children} );