You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been through the docs and I didn't find a way to call intermediate Javascript code before a native invocation, for example, if I have the following native functions:
Is there a way to call inside of the plugin implementation (own npm repo) some Javascript code with custom logic before triggering these native calls? Something like:
// Some typescript file asyncecho(options: {value: string}): Promise<{value: string}>{// Do any javascript custom/share logic to avoid duplicities non-dependant on native platform APIs// if (foo) { ... }// call Swift func on iOS, Java func on Androidthis.nativeEcho(...)}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've been through the docs and I didn't find a way to call intermediate Javascript code before a native invocation, for example, if I have the following native functions:
Is there a way to call inside of the plugin implementation (own
npm
repo) some Javascript code with custom logic before triggering these native calls? Something like:Beta Was this translation helpful? Give feedback.
All reactions