mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
610bb7f688
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