mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
Updated RCTPromiseRejectBlock example to use new 3 argument form
Reviewed By: svcscm Differential Revision: D2931949 fb-gh-sync-id: d5da545c882e662f9c5d5b33cc3b152a4269bbb8 shipit-source-id: d5da545c882e662f9c5d5b33cc3b152a4269bbb8
This commit is contained in:
parent
a7521a23ae
commit
b5579e807e
@ -188,7 +188,8 @@ RCT_REMAP_METHOD(findEvents,
|
|||||||
if (events) {
|
if (events) {
|
||||||
resolve(events);
|
resolve(events);
|
||||||
} else {
|
} else {
|
||||||
reject(error);
|
NSError *error = ...
|
||||||
|
reject(@"no_events", @"There were no events", error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user