Skip to content

Commit da44f72

Browse files
authored
Merge pull request #213 from dylancom/master
Fixed out-of-date ReadMe on "Editable Complex Components"
2 parents 2292ba6 + 643037b commit da44f72

File tree

1 file changed

+4
-25
lines changed

1 file changed

+4
-25
lines changed

README.md

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -459,33 +459,12 @@ Only `Item`s can be edited or moved. However you can create a complex component
459459
that is referenced by an Item using `reactModuleForCell`. You will need to do
460460
several things to set this up.
461461

462-
1. Add some lines to `AppDelegate.m`
463-
2. Write your view component.
464-
3. Pass the name of your view component as a prop in your `<TableView>`
462+
1. Write your view component.
463+
2. Pass the name of your view component as a prop in your `<TableView>`
465464
component.
466-
4. Create a list of `<Item>`s in your TableView, passing props intended for your
465+
3. Create a list of `<Item>`s in your TableView, passing props intended for your
467466
view component.
468-
5. Register your view component as an `App` root view.
469-
470-
#### Modifying `AppDelegate.m`
471-
472-
Add the following import statement with the other imports at the top of the
473-
file:
474-
475-
```objective-c
476-
#import <RNTableView/RNAppGlobals.h>
477-
```
478-
479-
Add the following two lines
480-
481-
```objective-c
482-
//Save main bridge so that RNTableView could access our bridge to create its RNReactModuleCells
483-
[[RNAppGlobals sharedInstance] setAppBridge:rootView.bridge];
484-
```
485-
486-
just before the `self.window =` line near the bottom of the file. If you have
487-
not already done so, add the header search path as shown in
488-
[Getting Started](#getting-started).
467+
4. Register your view component as an `App` root view.
489468

490469
### Write your cell view component.
491470

0 commit comments

Comments
 (0)