|
@@ -1,38 +0,0 @@
|
1
|
|
-package com.reactnativenavigation.utils;
|
2
|
|
-
|
3
|
|
-import com.facebook.react.bridge.Promise;
|
4
|
|
-
|
5
|
|
-import javax.annotation.Nullable;
|
6
|
|
-
|
7
|
|
-public class NoOpPromise implements Promise {
|
8
|
|
- @Override
|
9
|
|
- public void resolve(@Nullable Object value) {
|
10
|
|
-
|
11
|
|
- }
|
12
|
|
-
|
13
|
|
- @Override
|
14
|
|
- public void reject(String code, String message) {
|
15
|
|
-
|
16
|
|
- }
|
17
|
|
-
|
18
|
|
- @Override
|
19
|
|
- public void reject(String code, Throwable e) {
|
20
|
|
-
|
21
|
|
- }
|
22
|
|
-
|
23
|
|
- @Override
|
24
|
|
- public void reject(String code, String message, Throwable e) {
|
25
|
|
-
|
26
|
|
- }
|
27
|
|
-
|
28
|
|
- @Deprecated
|
29
|
|
- @Override
|
30
|
|
- public void reject(String message) {
|
31
|
|
-
|
32
|
|
- }
|
33
|
|
-
|
34
|
|
- @Override
|
35
|
|
- public void reject(Throwable reason) {
|
36
|
|
-
|
37
|
|
- }
|
38
|
|
-}
|