Skip to content

Commit 0a615ea

Browse files
committed
Merge pull request #620 from lvyile/patch-2
missing #import "RCTConvert.h"
2 parents c7b1e27 + ab997eb commit 0a615ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/NativeModulesIOS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ In our `CalendarManager` example, if we want to pass event date to native, we ha
7878
As `CalendarManager.addEvent` method gets more and more complex, the number of arguments will grow. Some of them might be optional. In this case it's worth considering changing the API a little bit to accept a dictionary of event attributes, like this:
7979

8080
```objective-c
81+
#import "RCTConvert.h"
82+
8183
- (void)addEventWithName:(NSString *)name details:(NSDictionary *)details
8284
{
8385
RCT_EXPORT(addEvent);

0 commit comments

Comments
 (0)