9b81232ed2
Summary: Refactors `Pressability` so that updates to the configuration are now explicitly committed using `configure()`. Previously, the configuration was updated implicitly because `Pressability` accepted a series of functions whose closures capture values (e.g. `this.props`). Although these changes typically happen when component instances are "atomically" updated by React, it is not a guarantee. For example, arbitrary instance variables could be used to configure `Pressability`, and they could be muted at any time. This change makes updates to the configuration of `Pressability` more predictable. Changelog: [Internal] Reviewed By: TheSavior Differential Revision: D18742620 fbshipit-source-id: d2e96dd1e3643289daab2177199a29f80d17b0bc |
||
---|---|---|
.. | ||
Pressability-test.js |