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.
41 lines
1.0 KiB
41 lines
1.0 KiB
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 ={[{paddingVertical: 15}, {flex: 1}]}>
|
|
<TouchableHighlight
|
|
onPress= {() => this.erase()}
|
|
// style={sharedStyles.new}
|
|
>
|
|
<Text style={{
|
|
paddingVertical: 10,
|
|
fontSize: 30,
|
|
backgroundColor: 'rgba(0,255,0,0.5)',
|
|
textAlign: 'center'}}>Start Capture</Text>
|
|
|
|
</TouchableHighlight>
|
|
</View>
|
|
|
|
)
|
|
}
|
|
}
|