Title: Cannot instantiate extended native classes using the "new" keyword · Issue #3 · NativeScript/ios · GitHub
Open Graph Title: Cannot instantiate extended native classes using the "new" keyword · Issue #3 · NativeScript/ios
X Title: Cannot instantiate extended native classes using the "new" keyword · Issue #3 · NativeScript/ios
Description: Extend a native class: var ButtonEditorHelper = /** @class */ (function (_super) { __extends(ButtonEditorHelper, _super); function ButtonEditorHelper() { return _super !== null && _super.apply(this, arguments) || this; } return ButtonEdi...
Open Graph Description: Extend a native class: var ButtonEditorHelper = /** @class */ (function (_super) { __extends(ButtonEditorHelper, _super); function ButtonEditorHelper() { return _super !== null && _super.apply(this...
X Description: Extend a native class: var ButtonEditorHelper = /** @class */ (function (_super) { __extends(ButtonEditorHelper, _super); function ButtonEditorHelper() { return _super !== null && _super.ap...
Opengraph URL: https://github.com/NativeScript/ios/issues/3
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cannot instantiate extended native classes using the \"new\" keyword","articleBody":"Extend a native class:\r\n\r\n```javascript\r\nvar ButtonEditorHelper = /** @class */ (function (_super) {\r\n __extends(ButtonEditorHelper, _super);\r\n function ButtonEditorHelper() {\r\n return _super !== null && _super.apply(this, arguments) || this;\r\n }\r\n return ButtonEditorHelper;\r\n}(NSObject));\r\n```\r\n\r\nand try to create an instance of it using the \"new\" keyword:\r\n\r\n```javascript\r\nvar helper = new ButtonEditorHelper();\r\n```\r\n\r\nCurrently the only supported way to instantiate this class is using the following:\r\n\r\n```javascript\r\nvar helper = ButtonEditorHelper.alloc().init();\r\n```","author":{"url":"https://github.com/darind","@type":"Person","name":"darind"},"datePublished":"2019-09-25T06:38:38Z","url":"https://github.com/NativeScript/ios/issues/3"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b050b115-d6a2-cb8c-ec13-b846cd64f96f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AC92:14700E:196BF4E:2037CEF:6B0144F8 |
| html-safe-nonce | 6d9e4e3d4a68a0cbe7c1d1ab47a5e95786dea95706ccf6e90581fae606fa7001 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzkyOjE0NzAwRToxOTZCRjRFOjIwMzdDRUY6NkIwMTQ0RjgiLCJ2aXNpdG9yX2lkIjoiMTg0NTgyMzM1NzU4NTU0MDM0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0a5280c4d11a3bc714d65209d10569e4294251770c8198bc8c25b7b39e96fc76 |
| hovercard-subject-tag | issue:498079822 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/ios/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/579af083ef4c319fd36a93a3eaa6fe6093695ace831b30a2891976be8c62093d/NativeScript/ios/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/579af083ef4c319fd36a93a3eaa6fe6093695ace831b30a2891976be8c62093d/NativeScript/ios/issues/3 |
| og:image:alt | Extend a native class: var ButtonEditorHelper = /** @class */ (function (_super) { __extends(ButtonEditorHelper, _super); function ButtonEditorHelper() { return _super !== null && _super.apply(this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | darind |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/ios git https://github.com/NativeScript/ios.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 172934359 |
| octolytics-dimension-repository_nwo | NativeScript/ios |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172934359 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/ios |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width