You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
6.1 KiB
1 line
6.1 KiB
{"ast":null,"code":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nimport _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"behavior\", \"contentContainerStyle\", \"keyboardVerticalOffset\"];\nimport * as React from 'react';\nimport View from \"../View\";\nvar KeyboardAvoidingView = function (_React$Component) {\n _inherits(KeyboardAvoidingView, _React$Component);\n var _super = _createSuper(KeyboardAvoidingView);\n function KeyboardAvoidingView() {\n var _this;\n _classCallCheck(this, KeyboardAvoidingView);\n _this = _super.apply(this, arguments);\n _this.frame = null;\n _this.onLayout = function (event) {\n _this.frame = event.nativeEvent.layout;\n };\n return _this;\n }\n _createClass(KeyboardAvoidingView, [{\n key: \"relativeKeyboardHeight\",\n value: function relativeKeyboardHeight(keyboardFrame) {\n var frame = this.frame;\n if (!frame || !keyboardFrame) {\n return 0;\n }\n var keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset || 0);\n return Math.max(frame.y + frame.height - keyboardY, 0);\n }\n }, {\n key: \"onKeyboardChange\",\n value: function onKeyboardChange(event) {}\n }, {\n key: \"render\",\n value: function render() {\n var _this$props = this.props,\n behavior = _this$props.behavior,\n contentContainerStyle = _this$props.contentContainerStyle,\n keyboardVerticalOffset = _this$props.keyboardVerticalOffset,\n rest = _objectWithoutPropertiesLoose(_this$props, _excluded);\n return React.createElement(View, _extends({\n onLayout: this.onLayout\n }, rest));\n }\n }]);\n return KeyboardAvoidingView;\n}(React.Component);\nexport default KeyboardAvoidingView;","map":{"version":3,"names":["_extends","_objectWithoutPropertiesLoose","_excluded","React","View","KeyboardAvoidingView","arguments","frame","onLayout","event","nativeEvent","layout","keyboardFrame","keyboardY","screenY","props","keyboardVerticalOffset","Math","max","y","height","_this$props","behavior","contentContainerStyle","rest","createElement","Component"],"sources":["/Users/thomaschazot/Documents/But2A/LaSuperMeteo/iut-expo-starter/node_modules/react-native-web/dist/exports/KeyboardAvoidingView/index.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"behavior\", \"contentContainerStyle\", \"keyboardVerticalOffset\"];\n\n/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport * as React from 'react';\nimport View from '../View';\n\nclass KeyboardAvoidingView extends React.Component {\n constructor() {\n super(...arguments);\n this.frame = null;\n\n this.onLayout = event => {\n this.frame = event.nativeEvent.layout;\n };\n }\n\n relativeKeyboardHeight(keyboardFrame) {\n var frame = this.frame;\n\n if (!frame || !keyboardFrame) {\n return 0;\n }\n\n var keyboardY = keyboardFrame.screenY - (this.props.keyboardVerticalOffset || 0);\n return Math.max(frame.y + frame.height - keyboardY, 0);\n }\n\n onKeyboardChange(event) {}\n\n render() {\n var _this$props = this.props,\n behavior = _this$props.behavior,\n contentContainerStyle = _this$props.contentContainerStyle,\n keyboardVerticalOffset = _this$props.keyboardVerticalOffset,\n rest = _objectWithoutPropertiesLoose(_this$props, _excluded);\n\n return /*#__PURE__*/React.createElement(View, _extends({\n onLayout: this.onLayout\n }, rest));\n }\n\n}\n\nexport default KeyboardAvoidingView;"],"mappings":";;;;;;;AAAA,OAAOA,QAAQ,MAAM,gCAAgC;AACrD,OAAOC,6BAA6B,MAAM,qDAAqD;AAC/F,IAAIC,SAAS,GAAG,CAAC,UAAU,EAAE,uBAAuB,EAAE,wBAAwB,CAAC;AAW/E,OAAO,KAAKC,KAAK,MAAM,OAAO;AAC9B,OAAOC,IAAI;AAAgB,IAErBC,oBAAoB;EAAA;EAAA;EACxB,gCAAc;IAAA;IAAA;IACZ,2BAASC,SAAS;IAClB,MAAKC,KAAK,GAAG,IAAI;IAEjB,MAAKC,QAAQ,GAAG,UAAAC,KAAK,EAAI;MACvB,MAAKF,KAAK,GAAGE,KAAK,CAACC,WAAW,CAACC,MAAM;IACvC,CAAC;IAAC;EACJ;EAAC;IAAA;IAAA,OAED,gCAAuBC,aAAa,EAAE;MACpC,IAAIL,KAAK,GAAG,IAAI,CAACA,KAAK;MAEtB,IAAI,CAACA,KAAK,IAAI,CAACK,aAAa,EAAE;QAC5B,OAAO,CAAC;MACV;MAEA,IAAIC,SAAS,GAAGD,aAAa,CAACE,OAAO,IAAI,IAAI,CAACC,KAAK,CAACC,sBAAsB,IAAI,CAAC,CAAC;MAChF,OAAOC,IAAI,CAACC,GAAG,CAACX,KAAK,CAACY,CAAC,GAAGZ,KAAK,CAACa,MAAM,GAAGP,SAAS,EAAE,CAAC,CAAC;IACxD;EAAC;IAAA;IAAA,OAED,0BAAiBJ,KAAK,EAAE,CAAC;EAAC;IAAA;IAAA,OAE1B,kBAAS;MACP,IAAIY,WAAW,GAAG,IAAI,CAACN,KAAK;QACxBO,QAAQ,GAAGD,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