WIP More Wifi setup
This commit is contained in:
@@ -14,12 +14,12 @@ function AdditionalOptionsBottomBar(props) {
|
||||
return (
|
||||
<View style={bottomBarStyles.container}>
|
||||
{ props.leftText ?
|
||||
<TouchableOpacity onPress={props.onLeftPress}>
|
||||
<TouchableOpacity onPress={props.onLeftPress} style={bottomBarStyles.button}>
|
||||
<Text style={bottomBarStyles.text}>{props.leftText} </Text>
|
||||
</TouchableOpacity> : <View></View>
|
||||
}
|
||||
{props.rightText &&
|
||||
<TouchableOpacity onPress={props.onRightPress}>
|
||||
<TouchableOpacity onPress={props.onRightPress} style={bottomBarStyles.button}>
|
||||
<Text style={bottomBarStyles.text}>{props.rightText}</Text>
|
||||
</TouchableOpacity>
|
||||
}
|
||||
@@ -35,6 +35,9 @@ const bottomBarStyles = StyleSheet.create({
|
||||
},
|
||||
text: {
|
||||
color: "rgba(255,255,255,0.5)",
|
||||
},
|
||||
button: {
|
||||
borderStyle: "dotted"
|
||||
}
|
||||
})
|
||||
|
||||
@@ -55,7 +58,7 @@ function SetupView(props) {
|
||||
<View style={setupViewStyles.container}>
|
||||
<View style={{ flexDirection: "row", alignItems: "center" }}>
|
||||
{props.backButton &&
|
||||
<TouchableOpacity onPress={props.navigation.goBack}>
|
||||
<TouchableOpacity onPress={() => props.navigation.goBack()}>
|
||||
<EntypoIcon name="chevron-left" style={setupViewStyles.backButton}></EntypoIcon>
|
||||
</TouchableOpacity>
|
||||
}
|
||||
@@ -63,7 +66,9 @@ function SetupView(props) {
|
||||
{props.headerText}
|
||||
</Text>
|
||||
</View>
|
||||
{props.children}
|
||||
<View style={{flex: 1, justifyContent: "center"}}>
|
||||
{props.children}
|
||||
</View>
|
||||
<AdditionalOptionsBottomBar leftText={props.lowerLeftButtonText}
|
||||
onLeftPress={props.onLowerLeftButtonPress}
|
||||
rightText={props.lowerRightButtonText}
|
||||
@@ -93,6 +98,7 @@ const setupViewStyles = StyleSheet.create({
|
||||
fontSize: 18,
|
||||
lineHeight: 25,
|
||||
width: "80%",
|
||||
marginBottom: 50,
|
||||
},
|
||||
backButton: {
|
||||
color: "rgba(255,255,255,1)",
|
||||
|
||||
Reference in New Issue
Block a user