Files
nitro/packages/react-native-nitro-modules/cpp
Marc RousavyandGitHub 46dc1f7fed feat: Allow passing Swift callbacks to JS (#42)
* feat: Allow converting a Swift closure to a C++ function

* Use `bind`

* return `func`

* feat: Generate std::bind placeholders

* Update ClosureWrapper.swift

* feat: Allow creating C++ func from (no argument) Swift callback!

* throw if func with more parameters is used bi-directionally

* Use helper function `ClosureWrapper.wrap`

* Update ClosureWrapper.swift
2024-08-15 13:35:21 +02:00
..
2024-08-14 19:34:31 +02:00