Commit 10728e9
committed
Fix Android parameters ordering
The current implementation raises "cannot have non-function argument after a function arg"
as of RN v0.48+.
This patch fixes this issue inverting the order of the arguments in the native implementation.
Proper checks are in place to make this change backward compatible and detect the previous API usage,
switching the parameters as needed.1 parent 26f57c6 commit 10728e9
File tree
2 files changed
+16
-3
lines changed- android/src/main/java/com/masteratul/exceptionhandler
2 files changed
+16
-3
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
21 | 34 | | |
22 | 35 | | |
23 | 36 | | |
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
27 | 40 | | |
28 | | - | |
| 41 | + | |
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
| |||
0 commit comments