mirror of
https://github.com/status-im/react-native.git
synced 2025-02-24 23:28:12 +00:00
correct homepage code examples
The examples for Extensibility on the home page are broken :(. RCT_EXPORT_MODULE() is missing, and RCT_EXPORT_VIEW_PROPERTY's signature has changed to accept a type as the 2nd argument.
This commit is contained in:
parent
120c32c52c
commit
35590440d6
4
website/src/react-native/index.js
vendored
4
website/src/react-native/index.js
vendored
@ -215,12 +215,14 @@ var Message = React.createClass({
|
||||
|
||||
@implementation MyCustomViewManager
|
||||
|
||||
RCT_EXPORT_MODULE()
|
||||
|
||||
- (UIView *)view
|
||||
{
|
||||
return [[MyCustomView alloc] init];
|
||||
}
|
||||
|
||||
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty);
|
||||
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty, NSString);
|
||||
@end`}
|
||||
</Prism>
|
||||
<Prism>
|
||||
|
Loading…
x
Reference in New Issue
Block a user