Skip to content

Commit

Permalink
Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
n4kz committed Oct 1, 2019
1 parent dd4f8c7 commit cc9c5bc
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ Material buttons with consistent behaviour on iOS and Android

![example][example-url]

## Features

* Easy to use
* Consistent look and feel on iOS and Android
* Animated state transitions
* Ripple animation on touch
* Pure javascript implementation

## Installation

```bash
Expand All @@ -27,10 +35,15 @@ import React, { Component } from 'react';
import { TextButton, RaisedTextButton } from 'react-native-material-buttons';

class Example extends Component {
_onPress = ({ id }) => {
console.log(`${id} pressed`);
};

render() {
let payload = { id: 'button-1' };

return (
<RaisedTextButton title='touch me' />
<TextButton title='do not touch me' disabled />
<RaisedTextButton title='touch me' onPress={this._onPress} payload={payload} />
);
}
}
Expand Down

0 comments on commit cc9c5bc

Please sign in to comment.