File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ @implementation <%= project.name %>
66
77// Example method for C++
88RCT_EXPORT_METHOD(multiply:(nonnull NSNumber *)a withB:(nonnull NSNumber *)b
9- resolver :(RCTPromiseResolveBlock)resolve
10- reject :(RCTPromiseRejectBlock)reject)
9+ withResolver :(RCTPromiseResolveBlock)resolve
10+ withReject :(RCTPromiseRejectBlock)reject)
1111{
1212 NSNumber *result = @(example::multiply ([a floatValue ], [b floatValue ]));
1313
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ @implementation <%= project.name %>
77// Example method
88// See // https://facebook.github.io/react-native/docs/native-modules-ios
99RCT_REMAP_METHOD(multiply,
10- withA :(nonnull NSNumber *)a withB:(nonnull NSNumber *)b
11- resolver :(RCTPromiseResolveBlock)resolve
12- rejecter :(RCTPromiseRejectBlock)reject)
10+ multiplyWithA :(nonnull NSNumber *)a withB:(nonnull NSNumber *)b
11+ withResolver :(RCTPromiseResolveBlock)resolve
12+ withRejecter :(RCTPromiseRejectBlock)reject)
1313{
1414 NSNumber *result = @([a floatValue ] * [b floatValue ]);
1515
You can’t perform that action at this time.
0 commit comments