From 95252369ae6ea2a07336f9546a3f499d662eefc4 Mon Sep 17 00:00:00 2001 From: Ben Alpert Date: Thu, 26 Mar 2015 10:48:01 -0700 Subject: [PATCH] Fix code blocks in README --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4d22b1307..bb4aabf76 100644 --- a/README.md +++ b/README.md @@ -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. -```javascript +```objc // Objective-C #import "RCTViewManager.h" @interface MyCustomViewManager : RCTViewManager @@ -166,12 +166,12 @@ Custom iOS views can be exposed by subclassing RCTViewManager, implementing a -( } RCT_EXPORT_VIEW_PROPERTY(myCustomProperty); @end`} - - -{`// JavaScript +``` + +```javascript module.exports = createReactIOSNativeComponentClass({ validAttributes: { myCustomProperty: true }, uiViewClassName: 'MyCustomView', -});`} +}); ```