Adding a series of // characters (i.e., a "comment bar") above every method in an Objective-C file would not provide any real benefit, and would in fact be redundant, as the method list in Xcode already serves as a visual separator for methods in a class. The #pragma mark directive, is a more concise and effective way to add separators and group related methods in a class. We should use #pragma mark to create a separator line and add a heading to describe the methods in a particular section. |
||
---|---|---|
.. | ||
android | ||
ios/RCTStatus | ||
nodejs | ||
index.js | ||
package.json | ||
react-native-status.podspec |