Skip to content

Commit d2b0613

Browse files
committed
[Docs] Fix formatting for "JavaScript method names" section in docs
Simple fix - GitHub's markdown is processed differently than Jekyll's, so just fixing things up to look better.
1 parent 862d9fb commit d2b0613

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/NativeModulesIOS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ var CalendarManager = require('NativeModules').CalendarManager;
5151
CalendarManager.addEvent('Birthday Party', '4 Privet Drive, Surrey');
5252
```
5353

54-
> **NOTE:** JavaScript method names
54+
> **NOTE**: JavaScript method names
55+
>
5556
> 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.
5657
5758
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).

0 commit comments

Comments
 (0)