Skip to content

Commit

Permalink
Make getTurboModule required in RCTTurboModule protocol
Browse files Browse the repository at this point in the history
Summary:
This change should make all type-safe NativeModules TurboModule-compatible.

Changelog: [Internal]

Differential Revision: D24729493

fbshipit-source-id: 7712708a24d675ca567225797016a7ff66a2920e
  • Loading branch information
RSNara authored and facebook-github-bot committed Nov 4, 2020
1 parent 2ea7ae4 commit b141dd7
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ class JSI_EXPORT ObjCTurboModule : public TurboModule {
*/
@property (nonatomic, weak) id<RCTTurboModuleRegistry> turboModuleRegistry;

@optional
// This should be required, after migration is done.
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
(const facebook::react::ObjCTurboModule::InitParams &)params;

Expand Down

0 comments on commit b141dd7

Please sign in to comment.