mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-09 09:12:06 +08:00
Merge pull request #1498 from jtremback/patch-2
Clarify native modules naming
This commit is contained in:
@@ -51,6 +51,7 @@ Then you just need a little bit of JavaScript to make this a usable React compon
|
||||
|
||||
var { requireNativeComponent } = require('react-native');
|
||||
|
||||
// requireNativeComponent automatically resolves this to "RCTMapManager"
|
||||
module.exports = requireNativeComponent('RCTMap', null);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user