Commit 9189852
authored
refactor: use RCT_EXPORT_METHOD instead of RCT_REMAP_METHOD (#417)
### Summary
Closes #414
We were using `RCT_REMAP_METHOD` to register methods in the current
architecture. This macro generates a new method from the given method
and changes its signature.
I've changed it to `RCT_EXPORT_METHOD` and with this change, we are able
to remove the duplicate implementation for mixed libraries.
### Test plan
These changes can potentially change these libraries: `current arch
objc`, `new arch objc`, `new arch cpp`, `mixed arch objc`, `mixed arch
cpp`. We need to make sure all of those libraries are generated properly
and work well.1 parent 7fa4a76 commit 9189852
File tree
1 file changed
+6
-12
lines changed- packages/create-react-native-library/templates/objc-library/ios
1 file changed
+6
-12
lines changedLines changed: 6 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 30 | | |
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | | - | |
40 | 36 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 37 | | |
45 | 38 | | |
| 39 | + | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
| |||
0 commit comments