Skip to content

Commit

Permalink
Update native-modules-ios.md (#306)
Browse files Browse the repository at this point in the history
* Update native-modules-ios.md

No, before resolve and reject parameters in `Promise` example

* Update native-modules-ios.md

* Update native-modules-ios.md

* Update native-modules-ios.md
  • Loading branch information
futurechallenger authored and charpeni committed Apr 22, 2018
1 parent a17a340 commit 70265d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/native-modules-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Native modules can also fulfill a promise, which can simplify your code, especia
Refactoring the above code to use a promise instead of callbacks looks like this:

```objectivec
RCT_REMAP_METHOD(findEvents,
RCT_REMAP_METHOD(findEvents
findEventsWithResolver:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.5/native-modules-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Native modules can also fulfill a promise, which can simplify your code, especia
Refactoring the above code to use a promise instead of callbacks looks like this:

```objectivec
RCT_REMAP_METHOD(findEvents,
RCT_REMAP_METHOD(findEvents
findEventsWithResolver:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.52/native-modules-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Native modules can also fulfill a promise, which can simplify your code, especia
Refactoring the above code to use a promise instead of callbacks looks like this:

```objectivec
RCT_REMAP_METHOD(findEvents,
RCT_REMAP_METHOD(findEvents
findEventsWithResolver:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
Expand Down
2 changes: 1 addition & 1 deletion website/versioned_docs/version-0.53/native-modules-ios.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Native modules can also fulfill a promise, which can simplify your code, especia
Refactoring the above code to use a promise instead of callbacks looks like this:

```objectivec
RCT_REMAP_METHOD(findEvents,
RCT_REMAP_METHOD(findEvents
findEventsWithResolver:(RCTPromiseResolveBlock)resolve
rejecter:(RCTPromiseRejectBlock)reject)
{
Expand Down

0 comments on commit 70265d7

Please sign in to comment.