mirror of
https://github.com/status-im/react-native.git
synced 2025-02-15 10:57:00 +00:00
Merge pull request #620 from lvyile/patch-2
missing #import "RCTConvert.h"
This commit is contained in:
commit
0a615ea9ea
@ -78,6 +78,8 @@ In our `CalendarManager` example, if we want to pass event date to native, we ha
|
|||||||
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:
|
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:
|
||||||
|
|
||||||
```objective-c
|
```objective-c
|
||||||
|
#import "RCTConvert.h"
|
||||||
|
|
||||||
- (void)addEventWithName:(NSString *)name details:(NSDictionary *)details
|
- (void)addEventWithName:(NSString *)name details:(NSDictionary *)details
|
||||||
{
|
{
|
||||||
RCT_EXPORT(addEvent);
|
RCT_EXPORT(addEvent);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user