You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 lines
838 B

import React, { Component } from 'react';
import sharedStyles from '../shared-styles';
import {
TouchableHighlight,
Platform,
StyleSheet,
Text,
View
} from 'react-native';
export default class NewButton extends Component {
constructor(props) {
super(props);
this.erase = this.props.erase;
this.state = { value: this.props.value};
}
formatValue() {
return this.state.value;
}
render() {
return (
<View style ={[sharedStyles.runInfoWrapper, {flex: 1}]}>
<TouchableHighlight
onPress= {() => this.erase()}
// style={sharedStyles.new}
>
<Text style={{fontSize: 25, textAlign: 'center'}}>New</Text>
</TouchableHighlight>
</View>
)
}
}