parent
747f5a498c
commit
cb8e6036be
@ -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 JoinButton extends Component {
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.join = this.props.join;
|
||||||
|
this.state = { value: this.props.value};
|
||||||
|
}
|
||||||
|
|
||||||
|
formatValue() {
|
||||||
|
return this.state.value;
|
||||||
|
}
|
||||||
|
|
||||||
|
render() {
|
||||||
|
return (
|
||||||
|
<View style ={[sharedStyles.runInfoWrapper, {flex: 1}]}>
|
||||||
|
<TouchableHighlight
|
||||||
|
onPress= {() => this.join()}
|
||||||
|
// style={sharedStyles.new}
|
||||||
|
>
|
||||||
|
<Text style={{fontSize: 25, textAlign: 'center'}}>Join</Text>
|
||||||
|
</TouchableHighlight>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in new issue