Files
react-native/packages
Ramanpreet Nara d487fdf81b Refactor: Separate arg conversion from invocation creation
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
2023-04-30 03:28:33 -07:00
..