UNPKG

react-native-gesture-handler

Version:

Declarative API exposing native platform touch and gesture system to React Native

23 lines (22 loc) 793 B
"use strict"; import * as React from 'react'; export const JSResponderContext = /*#__PURE__*/React.createContext(null); export function updateResponderEventValue(jsResponderContext, value) { const responderEventRef = jsResponderContext?.isRNGHResponderEvent; if (responderEventRef) { responderEventRef.current = value; } } let isKeyboardVisible = false; export function setKeyboardVisibility(visible) { isKeyboardVisible = visible; } export function isKeyboardDismissingTap(jsResponderContext) { if (jsResponderContext == null) { return false; } const mode = jsResponderContext.keyboardShouldPersistTaps; const keyboardNeverPersistTaps = !mode || mode === 'never'; return keyboardNeverPersistTaps && isKeyboardVisible; } //# sourceMappingURL=scrollViewInterop.js.map