/* @flow */

import React, { Component } from 'react';
import {
  TouchableHighlight,
  Text
} from 'react-native';
import styles from './styles';

export default class Button extends Component {
  render() {
    return (
      <TouchableHighlight onPress={this.props.onPress} style={styles.button}>
        <Text style={styles.text}>{this.props.text}</Text>
      </TouchableHighlight>
    );
  }
}

@@ -144,69 +144,270 @@
 s';%0A
-%0Aexport default class Button extends Component %7B%0A  render() %7B
+import FontAwesome, %7B Icons %7D from 'react-native-fontawesome'%0A%0Aexport default class Button extends Component %7B%0A  render() %7B%0A    let icon: ?FontAwesome = null%0A    if(this.props.icon !== null)%7B%0A      icon = %3CFontAwesome%3E%7BIcons%5Bthis.props.icon%5D%7D%3C/FontAwesome%3E%0A    %7D
 %0A   
@@ -529,16 +529,22 @@
 .text%7D%3E%7B
+icon%7D%7B
 this.pro

Add (optional) icon to buttons