This commit is contained in:
Spencer Ahrens 2015-03-26 11:13:46 -07:00
Родитель 6f954612fe
Коммит bcabb3bc4a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -119,7 +119,7 @@ var GeoInfo = React.createClass({
## Extensibility
It is certainly possible to create a great app using React Native without writing a single line of native code, but React Native is also designed to be easily expended with custom native views and modules - that means you can reuse anything you've already built, and can import and use your favorite native libraries. To create a simple module in iOS, create a new class that implements the `RCTBridgeModule` protocol, and add `RCT_EXPORT` to the function you want to make available in JavaScript.
It is certainly possible to create a great app using React Native without writing a single line of native code, but React Native is also designed to be easily extended with custom native views and modules - that means you can reuse anything you've already built, and can import and use your favorite native libraries. To create a simple module in iOS, create a new class that implements the `RCTBridgeModule` protocol, and add `RCT_EXPORT` to the function you want to make available in JavaScript.
```objc
// Objective-C