Fix code blocks in README

This commit is contained in:
Ben Alpert 2015-03-26 10:48:01 -07:00
parent b02db77ca4
commit 95252369ae
1 changed files with 5 additions and 5 deletions

View File

@ -154,7 +154,7 @@ var Message = React.createClass({
Custom iOS views can be exposed by subclassing RCTViewManager, implementing a -(UIView *)view method, and exporting properties with the RCT_EXPORT_VIEW_PROPERTY macro. Then a simple JavaScript file connects the dots. Custom iOS views can be exposed by subclassing RCTViewManager, implementing a -(UIView *)view method, and exporting properties with the RCT_EXPORT_VIEW_PROPERTY macro. Then a simple JavaScript file connects the dots.
```javascript ```objc
// Objective-C // Objective-C
#import "RCTViewManager.h" #import "RCTViewManager.h"
@interface MyCustomViewManager : RCTViewManager @interface MyCustomViewManager : RCTViewManager
@ -166,12 +166,12 @@ Custom iOS views can be exposed by subclassing RCTViewManager, implementing a -(
} }
RCT_EXPORT_VIEW_PROPERTY(myCustomProperty); RCT_EXPORT_VIEW_PROPERTY(myCustomProperty);
@end`} @end`}
</Prism> ```
<Prism>
{`// JavaScript ```javascript
module.exports = createReactIOSNativeComponentClass({ module.exports = createReactIOSNativeComponentClass({
validAttributes: { myCustomProperty: true }, validAttributes: { myCustomProperty: true },
uiViewClassName: 'MyCustomView', uiViewClassName: 'MyCustomView',
});`} });
``` ```