Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make RCTTurboModule getTurboModule: required
Summary: ## Rationale There are two ways to associate NativeModule ObjC objects with ObjCTurboModule jsi::HostObjects: 1. Via the NativeModule ObjC class's `getTurboModule:` method. 2. Via the TurboModule manager delegate's getTurboModule:initParams: method. There's no good reason to support both options. So, this diff stack removes 2, and make 1 mandatory for all RCTTurboModules. Not only will this simplify the infra, but it should also help eliminate a class of runtime errors in the TurboModule standalone app migration: you forget to implement the getTurboModule: method. Changelog: [iOS][Changed] - Make RCTTurboModule getTurboModule: required Reviewed By: PeteTheHeat Differential Revision: D27316129 fbshipit-source-id: baccd155b8c191d0f961b316db552bdfdbeb0a97
- Loading branch information