Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extending Android types with TypeScript #57

Closed
atanasovg opened this issue Apr 24, 2015 · 1 comment
Closed

Extending Android types with TypeScript #57

atanasovg opened this issue Apr 24, 2015 · 1 comment
Labels

Comments

@atanasovg
Copy link
Contributor

When extending native Android types using TypeScript, the Runtime requires additional notification for the extended object so that we may establish the proper relation between the JS Proxy and the corresponding Native Android object. This notification is done via the global __native(object) function. For example:

class PageFragmentBody extends android.app.Fragment {
    constructor() {
        super();

        return global.__native(this);
    }
}

If the user does not return the __native(this) there is no warning/notification for this unexpected behavior.

Additionally, we should explain this mechanism in a documentation article.

@Plamen5kov
Copy link
Contributor

fixed with: 08d3f04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants