Skip to content

Commit 93b0801

Browse files
committed
chore: update TurboModule template
1 parent 441fb04 commit 93b0801

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

packages/create-react-native-library/templates/objc-library/ios/{%- project.name %}.mm

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
@implementation <%- project.name -%>
44

5-
RCT_EXPORT_MODULE()
6-
75
- (NSNumber *)multiply:(double)a b:(double)b {
86
NSNumber *result = @(a * b);
97

@@ -16,4 +14,9 @@ - (NSNumber *)multiply:(double)a b:(double)b {
1614
return std::make_shared<facebook::react::Native<%- project.name -%>SpecJSI>(params);
1715
}
1816

17+
+ (NSString *)moduleName
18+
{
19+
return @"<%- project.name -%>";
20+
}
21+
1922
@end

0 commit comments

Comments
 (0)