For our project we need openInMenu native functionality rather than optionsMenu which currently this module provides via previewDocument. This PR adds it.
When I started to investigate the problem, I found that method name mapping js <-> native is very confusing. So, because JS api is platform-specific anyway, I decided to provide native method names in addition to current methods.
P.S. After I committed files I realized that my IDE spoiled the code style and created some diff noise, because there is no editorconfig/prettier/eslint/whatever in this project. If you insist, I can fix this manually, but I suggest you to add some styling config and format everything.
For our project we need
openInMenu
native functionality rather thanoptionsMenu
which currently this module provides viapreviewDocument
. This PR adds it.When I started to investigate the problem, I found that method name mapping js <-> native is very confusing. So, because JS api is platform-specific anyway, I decided to provide native method names in addition to current methods.
P.S. After I committed files I realized that my IDE spoiled the code style and created some diff noise, because there is no editorconfig/prettier/eslint/whatever in this project. If you insist, I can fix this manually, but I suggest you to add some styling config and format everything.