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 %>
6
6
7
7
// Example method for C++
8
8
RCT_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)
11
11
{
12
12
NSNumber *result = @(example::multiply ([a floatValue ], [b floatValue ]));
13
13
Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ @implementation <%= project.name %>
7
7
// Example method
8
8
// See // https://facebook.github.io/react-native/docs/native-modules-ios
9
9
RCT_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)
13
13
{
14
14
NSNumber *result = @([a floatValue ] * [b floatValue ]);
15
15
You can’t perform that action at this time.
0 commit comments