57 lines
2.3 KiB
JavaScript
57 lines
2.3 KiB
JavaScript
// Metro module 5300 (f5301).
|
|
import _classCallCheck from "./_classCallCheck";
|
|
import _createClass from "./_createClass";
|
|
import _possibleConstructorReturn from "./_possibleConstructorReturn";
|
|
import _getPrototypeOf from "./_getPrototypeOf";
|
|
import _inherits from "./_inherits";
|
|
import Module19 from "react";
|
|
import Module5301 from "./Module5301";
|
|
import { tagMessage } from "./deepEqual";
|
|
import createHandler from "./createHandler";
|
|
import { baseGestureHandlerProps } from "./Module5290";
|
|
let ForceTouchFallback;
|
|
let env3202 = {};
|
|
env3202[5] = function _isNativeReflectConstruct() {
|
|
let c14786_0;
|
|
try {
|
|
c14786_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
} catch ($e) {}
|
|
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
|
|
return !!c14786_0;
|
|
};
|
|
env3202[5] = _isNativeReflectConstruct2;
|
|
return _isNativeReflectConstruct2();
|
|
};
|
|
const Component = Module19.Component;
|
|
ForceTouchFallback = function ForceTouchFallback() {
|
|
_classCallCheck(this, ForceTouchFallback);
|
|
const r8 = _getPrototypeOf(ForceTouchFallback);
|
|
return _possibleConstructorReturn(this, (0, env3202[5])() ? Reflect.construct(r8, arguments, _getPrototypeOf(this).constructor) : r8.apply(this, arguments));
|
|
};
|
|
_inherits(ForceTouchFallback, Component);
|
|
let r43 = _createClass(ForceTouchFallback, [{
|
|
key: "componentDidMount",
|
|
value: function componentDidMount() {
|
|
console.warn(tagMessage("ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase"));
|
|
}
|
|
}, {
|
|
key: "render",
|
|
value: function render() {
|
|
return this.props.children;
|
|
}
|
|
}]);
|
|
r43.forceTouchAvailable = false;
|
|
const forceTouchAvailable = Module5301?.forceTouchAvailable;
|
|
const r45 = ["minForce", "maxForce", "feedbackOnActivation"];
|
|
if (forceTouchAvailable) {
|
|
r43 = createHandler({
|
|
name: "ForceTouchGestureHandler",
|
|
allowedProps: [...baseGestureHandlerProps, ...r45],
|
|
config: {}
|
|
});
|
|
}
|
|
r43.forceTouchAvailable = Module5301?.forceTouchAvailable || false;
|
|
export { r45 as forceTouchGestureHandlerProps };
|
|
export const forceTouchHandlerName = "ForceTouchGestureHandler";
|
|
export { r43 as ForceTouchGestureHandler };
|