This release contains a major refactor that makes react-tappable
more modular, thanks to Naman Goel
You can now use just the Tappable
component, or choose to use the TapAndPinchable
(default export). Instructions will be added to the Readme with more information soon.
- fixed; removed former hacky attempts to handle the React eventpooling problem
- added; support for React
0.14.0-beta1
- fixed; regression introduced in
v0.5.5
where errors would occur in certain conditions
- fixed;
afterEndTouch
is now called synchronously, which means the SyntheticTouch event behaves as expected. See #39 and #47 for more information.
- fixed; removed
React.initializeTouchEvents
, no longer needed and breaks in React 0.14
- fixed;
preventDefault
issue on iOS
- Added
activeDelay
prop, delays adding the-active
class by the provided milliseconds for situations when you don't want to hilight a tap immediately (e.g. iOS Scrollable Lists)
- Fixed issue where halting momentum scrolling would incorrectly fire a tap event
onTap
now fires after the tappable'ssetState
is complete, resolves some animation edge-case issues
- Using Babel's polyfill for Object.assign
lib
build (via Babel) is provided for use without further transpilationpreventDefault
is called to clock the click event firing after a touch has been detected- React has been changed to a dev/peerDependency
- Added pinch events -
onPinchStart
,onPinchMove
,onPinchEnd
- Older single touch based events don't fire when dealing with multi-touch
- Refactored the way props are passed to component. You can now pass in custom properties for the target component that are not meant for React-Tappable
- Now works with React 0.13, backwards compatible with 0.12
- Support for
data-
andaria-
props on the Component, thanks Tom Hicks
- Cleanup around removal of Reactify, build-examples is working again
- Reactify is no longer included as a Browserify transform, thanks Naman Goel
This release restructured the code so that most methods are now on a Mixin, which is used by the Component (module.exports
);
You can now mix react-tappable
into your own Components by using the Mixin directly:
var Tappable = require('react-tappable');
var MyComponent = React.createComponent({
mixins: [Tappable.Mixin],
/* ... */
});