webpackHotUpdate("index",{

/***/ "./src/app.jsx":
/*!*********************!*\
  !*** ./src/app.jsx ***!
  \*********************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* WEBPACK VAR INJECTION */(function(__react_refresh_utils__) {/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return App; });\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/classCallCheck */ \"./node_modules/@babel/runtime/helpers/classCallCheck.js\");\n/* harmony import */ var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/createClass */ \"./node_modules/@babel/runtime/helpers/createClass.js\");\n/* harmony import */ var _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @babel/runtime/helpers/inherits */ \"./node_modules/@babel/runtime/helpers/inherits.js\");\n/* harmony import */ var _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @babel/runtime/helpers/possibleConstructorReturn */ \"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js\");\n/* harmony import */ var _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @babel/runtime/helpers/getPrototypeOf */ \"./node_modules/@babel/runtime/helpers/getPrototypeOf.js\");\n/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _hippy_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @hippy/react */ \"../../packages/hippy-react/dist/index.js\");\n/* harmony import */ var _pages_entry__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./pages/entry */ \"./src/pages/entry.jsx\");\n/* harmony import */ var _pages_debug__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pages/debug */ \"./src/pages/debug.jsx\");\n/* harmony import */ var _pages_remote_debug__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./pages/remote-debug */ \"./src/pages/remote-debug.jsx\");\n/* harmony import */ var _shared_SafeAreaView__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./shared/SafeAreaView */ \"./src/shared/SafeAreaView.jsx\");\n__webpack_require__.$Refresh$.runtime = __webpack_require__(/*! ./node_modules/react-refresh/runtime.js */ \"./node_modules/react-refresh/runtime.js\");\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this, result); }; }\n\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; } }\n\n\n\n\n\n\n\nvar styles = _hippy_react__WEBPACK_IMPORTED_MODULE_6__[\"StyleSheet\"].create({\n  buttonContainer: {\n    height: 48,\n    backgroundColor: 'white',\n    flexDirection: 'row'\n  },\n  button: {\n    height: 48,\n    flex: 1,\n    alignItems: 'center',\n    justifyContent: 'center',\n    backgroundColor: '#fff',\n    borderTopWidth: 1,\n    borderTopColor: '#eee'\n  },\n  buttonText: {\n    color: '#242424',\n    fontSize: 16\n  },\n  blankPage: {\n    flex: 1,\n    backgroundColor: 'white'\n  }\n});\n\nvar App = /*#__PURE__*/function (_Component) {\n  _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_2___default()(App, _Component);\n\n  var _super = _createSuper(App);\n\n  function App(props) {\n    var _this;\n\n    _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this, App);\n\n    _this = _super.call(this, props);\n    _this.state = {\n      pageIndex: 0\n    };\n    return _this;\n  }\n\n  _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(App, [{\n    key: \"render\",\n    value: function render() {\n      var _this2 = this;\n\n      var pageIndex = this.state.pageIndex;\n      var instanceId = this.props.__instanceId__;\n\n      var renderPage = function renderPage() {\n        switch (pageIndex) {\n          case 0:\n            return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_pages_entry__WEBPACK_IMPORTED_MODULE_7__[\"default\"], null);\n\n          case 1:\n            return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_pages_remote_debug__WEBPACK_IMPORTED_MODULE_9__[\"default\"], {\n              instanceId: instanceId\n            });\n\n          default:\n            return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_hippy_react__WEBPACK_IMPORTED_MODULE_6__[\"View\"], {\n              style: styles.blankPage\n            });\n        }\n      };\n\n      var renderButton = function renderButton() {\n        var buttonArray = ['API', '调试'];\n        return buttonArray.map(function (text, i) {\n          return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_hippy_react__WEBPACK_IMPORTED_MODULE_6__[\"View\"], {\n            key: \"button_\".concat(i),\n            style: styles.button,\n            onClick: function onClick() {\n              return _this2.setState({\n                pageIndex: i\n              });\n            }\n          }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_hippy_react__WEBPACK_IMPORTED_MODULE_6__[\"Text\"], {\n            style: [styles.buttonText, i === pageIndex ? {\n              color: '#4c9afa'\n            } : null],\n            numberOfLines: 1\n          }, text));\n        });\n      };\n\n      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_shared_SafeAreaView__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n        statusBarColor: \"#4c9afa\"\n      }, renderPage(), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_hippy_react__WEBPACK_IMPORTED_MODULE_6__[\"View\"], {\n        style: styles.buttonContainer\n      }, renderButton()));\n    }\n  }]);\n\n  return App;\n}(react__WEBPACK_IMPORTED_MODULE_5__[\"Component\"]);\n\n\n\nvar $ReactRefreshModuleId$ = __webpack_require__.$Refresh$.moduleId;\nvar $ReactRefreshCurrentExports$ = __react_refresh_utils__.getModuleExports(\n\t$ReactRefreshModuleId$\n);\n\nfunction $ReactRefreshModuleRuntime$(exports) {\n\tif (true) {\n\t\tvar errorOverlay;\n\t\tif (true) {\n\t\t\terrorOverlay = false;\n\t\t}\n\t\tvar testMode;\n\t\tif (typeof __react_refresh_test__ !== 'undefined') {\n\t\t\ttestMode = __react_refresh_test__;\n\t\t}\n\t\treturn __react_refresh_utils__.executeRuntime(\n\t\t\texports,\n\t\t\t$ReactRefreshModuleId$,\n\t\t\tmodule.hot,\n\t\t\terrorOverlay,\n\t\t\ttestMode\n\t\t);\n\t}\n}\n\nif (typeof Promise !== 'undefined' && $ReactRefreshCurrentExports$ instanceof Promise) {\n\t$ReactRefreshCurrentExports$.then($ReactRefreshModuleRuntime$);\n} else {\n\t$ReactRefreshModuleRuntime$($ReactRefreshCurrentExports$);\n}\n/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@hippy/hippy-react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js */ \"./node_modules/@hippy/hippy-react-refresh-webpack-plugin/lib/runtime/RefreshUtils.js\")))//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64, \n//# sourceURL=webpack-internal:///./src/app.jsx\n");

/***/ })

})