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.

37 lines
842 B

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.modal = this.props.modal;
this.state = { value: this.props.value};
}
formatValue() {
return this.state.value;
}
render() {
return (
<View style ={[sharedStyles.runInfoWrapper, {flex: 1}]}>
<TouchableHighlight
onPress= {() => this.modal()}
// style={sharedStyles.new}
>
<Text style={{fontSize: 25, textAlign: 'center'}}>Join Room</Text>
</TouchableHighlight>
</View>
)
}
}