mirror of
https://github.com/facebook/react.git
synced 2026-02-27 03:07:57 +00:00
This implements 'usePress' in user-space as a combination of 'useKeyboard' and 'useTap'. The existing 'usePress' API is preserved for now. The previous 'usePress' implementation is moved to 'PressLegacy'.
8 lines
224 B
JavaScript
8 lines
224 B
JavaScript
'use strict';
|
|
|
|
if (process.env.NODE_ENV === 'production') {
|
|
module.exports = require('./cjs/react-ui-events/scroll.production.min.js');
|
|
} else {
|
|
module.exports = require('./cjs/react-ui-events/scroll.development.js');
|
|
}
|