* Default ObjC module name when `RCT_EXPORT_MODULE()` has no argument: * strip a leading `RCT` prefix from the class name (Apple's convention) * and treat the rest as the JS-visible module name. `RCTGeolocation` → * `Geolocation`. Class names without an `RCT` prefix are returned * unchanged.
(className: string)
| 72 | * unchanged. |
| 73 | */ |
| 74 | function defaultObjcModuleName(className: string): string { |
| 75 | return className.startsWith('RCT') && className.length > 3 |
| 76 | ? className.slice(3) |
| 77 | : className; |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Parse an ObjC `.m`/`.mm` file's source for `RCT_EXPORT_MODULE` and |
no outgoing calls
no test coverage detected