Skip to content

Commit 1efd2c8

Browse files
committed
Merge pull request #1237 from nickhudkins/patch-1
[Docs] Correct homepage code examples
2 parents 18a3d71 + 7947f04 commit 1efd2c8

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ Custom iOS views can be exposed by subclassing `RCTViewManager`, implementing a
177177

178178
@implementation MyCustomViewManager
179179

180+
RCT_EXPORT_MODULE()
181+
180182
- (UIView *)view
181183
{
182184
return [[MyCustomView alloc] init];

website/src/react-native/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,12 +215,14 @@ var Message = React.createClass({
215215
216216
@implementation MyCustomViewManager
217217
218+
RCT_EXPORT_MODULE()
219+
218220
- (UIView *)view
219221
{
220222
return [[MyCustomView alloc] init];
221223
}
222224
223-
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty);
225+
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty, NSString);
224226
@end`}
225227
</Prism>
226228
<Prism>

0 commit comments

Comments
 (0)