mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-29 15:59:39 +08:00
Added objective-c class/module semantics
Summary:This really stumped me and I thought it could be added to the docs. Closes https://github.com/facebook/react-native/pull/6136 Differential Revision: D2973912 Pulled By: mkonicek fb-gh-sync-id: 0da1a946e2c2ad00056037a6492be3e99096582e shipit-source-id: 0da1a946e2c2ad00056037a6492be3e99096582e
This commit is contained in:
committed by
Facebook Github Bot 0
parent
82e2038dfd
commit
2fe67162ae
@@ -59,7 +59,7 @@ CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey');
|
||||
>
|
||||
> The name of the method exported to JavaScript is the native method's name up to the first colon. React Native also defines a macro called `RCT_REMAP_METHOD()` to specify the JavaScript method's name. This is useful when multiple native methods are the same up to the first colon and would have conflicting JavaScript names.
|
||||
|
||||
The return type of bridge methods is always `void`. React Native bridge is asynchronous, so the only way to pass a result to JavaScript is by using callbacks or emitting events (see below).
|
||||
The CalendarManager module is instantiated on the Objective-C side using a [CalendarManager new] call. The return type of bridge methods is always `void`. React Native bridge is asynchronous, so the only way to pass a result to JavaScript is by using callbacks or emitting events (see below).
|
||||
|
||||
## Argument Types
|
||||
|
||||
|
||||
Reference in New Issue
Block a user