mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
a352ecfabd
Summary: This is a TODO, we met crash if we don't call `retainArguments` when return type is like `NSDictionary`, the reason is `getReturnValue` don't retain the return value, so we need to using `__bridge` to transfer ownership to OC type. Also add `resolveBlock` and `rejectBlock` to `retainedObjectsForInvocation`. cc. cpojer ## Changelog [iOS] [Fixed] - Remove retainArguments && do retain by us explicitly Pull Request resolved: https://github.com/facebook/react-native/pull/24849 Differential Revision: D15369209 Pulled By: fkgozali fbshipit-source-id: 8431d03705d8476f38c8b5d29630489a545d373a