Skip to content

Instantly share code, notes, and snippets.

@seyna
Created April 13, 2018 15:50
Show Gist options
  • Save seyna/5f8c6c19fb3844ce29a08b403190a493 to your computer and use it in GitHub Desktop.
Save seyna/5f8c6c19fb3844ce29a08b403190a493 to your computer and use it in GitHub Desktop.
for firebase practice
'use strict';
import React, {Component} from 'react';
import ReactNative from 'react-native';
const styles = require('./Styles/styles.js')
const constants = styles.constants;
const { StyleSheet, Text, View, TouchableHighlight} = ReactNative;
class ActionButton extends Component {
render() {
return (
<View style={styles.action}>
<TouchableHighlight
underlayColor={constants.actionColor}
onPress={this.props.onPress}>
<Text style={styles.actionText}>{this.props.title}</Text>
</TouchableHighlight>
</View>
);
}
}
module.exports = ActionButton;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment