git commit

This commit is contained in:
lesmaux
2018-09-29 17:56:53 +12:00
parent 4c4d6b8bf3
commit 747f5a498c
7 changed files with 12172 additions and 33 deletions
+23
View File
@@ -0,0 +1,23 @@
import React, { Component } from 'react';
// import sharedStyles from './shared-styles';
// import {
// Platform,
// StyleSheet,
// Image,
// ListView,
// Text,
// ScrollView,
// TextInput,
// TouchableHighlight,
// View
// } from 'react-native';
export default class CapturedArea {
constructor(userID, coordinates, strokeColor, fillColor, area) {
this.userID = userID;
this.coordinates = coordinates;
this.strokeColor = strokeColor;
this.fillColor = fillColor;
this.area = area;
}
}
+35
View File
@@ -0,0 +1,35 @@
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>
)
}
}