Skip to content

Commit 0b7f031

Browse files
Laura Macalusometa-codesync[bot]
authored andcommitted
Update docstrings in RCTInteropTurboModule.h (#56119)
Summary: Pull Request resolved: #56119 Update docstrings in RCTInteropTurboModule.h Changelog: [Internal] Reviewed By: cortinico Differential Revision: D95557697 fbshipit-source-id: 6d3f862e90a05170b990f8bbb743d0d2715b1ef6
1 parent ec9ac81 commit 0b7f031

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTInteropTurboModule.h

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ class JSI_EXPORT ObjCInteropTurboModule : public ObjCTurboModule {
3434
jsi::Value create(jsi::Runtime &runtime, const jsi::PropNameID &propName) override;
3535

3636
/**
37-
* Why is this overriden?
38-
*
39-
* Purpose: Converts native module method returns from Objective C values to JavaScript values.
37+
* Converts native module method returns from Objective C values to JavaScript values.
4038
*
4139
* ObjCTurboModule converts returns by returnType. But, Legacy native modules convert returns by the Objective C type:
4240
* React Native cannot infer a method's returnType from the RCT_EXPORT_METHOD annotations.
@@ -48,9 +46,7 @@ class JSI_EXPORT ObjCInteropTurboModule : public ObjCTurboModule {
4846
id result) override;
4947

5048
/**
51-
* Why is this overriden?
52-
*
53-
* Purpose: Get a native module method's argument's type, given the method name, and argument index.
49+
* Get a native module method's argument's type, given the method name, and argument index.
5450
*
5551
* This override is meant to serve as a performance optimization.
5652
*
@@ -63,9 +59,7 @@ class JSI_EXPORT ObjCInteropTurboModule : public ObjCTurboModule {
6359
NSString *getArgumentTypeName(jsi::Runtime &runtime, NSString *methodName, int argIndex) override;
6460

6561
/**
66-
* Why is this overriden?
67-
*
68-
* Purpose: Convert arguments from JavaScript values to Objective C values. Assign the Objective C argument to the
62+
* Convert arguments from JavaScript values to Objective C values. Assign the Objective C argument to the
6963
* method invocation.
7064
*
7165
* ObjCTurboModule tries to minimize reliance on RCTConvert for argument conversion. Why: RCTConvert relies on the

0 commit comments

Comments
 (0)