Skip to content

Commit

Permalink
feat: Add bindContainer helper method & update RM
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasdelfino committed Oct 21, 2017
1 parent 1adffbc commit 7ce5ba9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ renderMetroContainer() {
}
```

#### Metro.bindContainer:
```javascript
// A wrapper for Metro.container that removes the need for having a conditional toggle in parent.
// Arguments:
// conditional property for toggling (bool), component (dom element), animation (object - optional), props (object optional)

renderLessVerboseContainer() {
return Metro.bindContainer(bool, component, animation, props)
}
```

#### Customizing animations
```javascript
// Override Metro´s default animations settings for each unique item in your items
Expand Down

0 comments on commit 7ce5ba9

Please sign in to comment.