NativeScript / NativeScript/android

[koltin] auto create `kotlin.jvm.functions.FunctionX` when a JS function is passed

Open
#1,786 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
563
Forks
144
Avg merge
10h 46m
Merged PRs (30d)
14

Description

It would be very practical to be able to pass JS function directly instead of having to do new kotlin.jvm.functions.Function1(myJSFunctionWith1Arg)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are identified in the issue. Start by locating the Android runtime's JavaScript-to-Kotlin function interop handling and determine how FunctionX wrappers are currently created; done means a JS function can be passed directly with the correct arity and the behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, kotlin
Domain
mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.