-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rn | Improve bridging, allowing implicit conversion of jsi types wrap…
…ped in SyncCallback/AsyncCallback/AsyncPromise. Summary: `toJs()` resolution trips up on converting the plain old jsi values. In order to help it - remove the automatic inference of template types, since we already know that `T` in this case is going to be the concrete jsi type. This allows using implicit conversions on Sync/Async Callback types, as well as AsyncPromise. Without it - AsyncPromise/Callback trip up on trying to convert Convertor<T> to jsi type. Changelog: [General][Added] SyncCallback/AsyncCallback/AsyncPromise bridging types in C++ now allow wrapping JSI types. Reviewed By: JoshuaGross Differential Revision: D38529799 fbshipit-source-id: 860de2d771899f331bf1a4ff0dade4eccc875618
- Loading branch information
1 parent
647542c
commit 610bb7f
Showing
2 changed files
with
108 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters