mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: The old and the new native module system perform method argument conversion very differently: - The TurboModule system converts from JSI Value -> ObjC value. It tries to minimize reliance on RCTConvert. - The legacy NativeModule system is practically built on top of RCTConvert. It relies on runtime type checking to convert between JSI value -> ObjC value. So, this diff pulls arg conversion into its own method. That way we can implement argument conversion differently in the TurboModule interop layer. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D44850618 fbshipit-source-id: 811d42ed5a78493df9969c546431a4efdf374c0e