mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: There are cases where we want to pass arbitrary types to a TurboModule, which may then handle the values appropriately, but we haven't supported this use case. Since C++ TurboModules can accept any `jsi::Value` (unlike Java/ObjC) and we have real-world need for this (otherwise we must require JSON serialization), this now allows `mixed` (`unknown` in TypeScript) for C++-only TurboModules. Changelog: [General][Added] C++ TurboModule methods can now use mixed types Reviewed By: RSNara Differential Revision: D36611299 fbshipit-source-id: bbf29dfcc6aed67e213bb3eab06537c18c7db1fe