Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

closed #32 #40

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions template/mobiletemp/navigation/AppNavigator.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { createAppContainer, createSwitchNavigator, createDrawerNavigator } from
import HomeScreen from '../screens/HomeScreen';
import Gallery from '../screens/Gallery'
import About from '../screens/About'
import Contact from '../screens/Contact'
import LinksScreen from '../screens/LinksScreen';
import SettingsScreen from '../screens/SettingsScreen';

Expand All @@ -17,5 +18,8 @@ export default createAppContainer(createDrawerNavigator({
} ,
About: {
screen: About
},
Contact: {
screen: Contact
}
}));
2 changes: 1 addition & 1 deletion template/mobiletemp/screens/About.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { MonoText } from '../components/StyledText';
import {Icon} from 'react-native-elements'
// import { Icon } from 'semantic-ui-react';

export default class HomeScreen extends React.Component {
export default class About extends React.Component {
static navigationOptions = {
header: null,
};
Expand Down
186 changes: 186 additions & 0 deletions template/mobiletemp/screens/Contact.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
import React from 'react';
import {
Image,
Platform,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import { WebBrowser } from 'expo';
import {
Header,
Card,
FormInput,
FormLabel,
FormValidationMessage

} from 'react-native-elements'
import {Icon} from 'react-native-elements'

export default class Contact extends React.Component {
static navigationOptions = {
header: null,
};

render() {
return (
<View style={styles.container}>
<Header
leftComponent={<Hamburger navigationProps = {this.props.navigation}/>}
centerComponent={{ text: 'Template 1', style: { color: '#132029'}}}
rightComponent = {{ icon: 'home', color: '#132029' }}
backgroundColor = '#FF69B4'
/>

<ScrollView style={styles.container} contentContainerStyle={styles.contentContainer}>
<View style = {styles.textComp}>
<Text style = {{color: 'white', textAlign: 'center', fontSize: 35}}>
Contact Me!
</Text>
</View>
<View>
<FormLabel>Name</FormLabel>
<View style= {{backgroundColor: 'white'}}>
<FormInput style= {{backgroundColor: 'white'}}/>
</View>
<FormValidationMessage>{'Please enter your name!'}</FormValidationMessage>
<FormLabel>Email</FormLabel>
<View style= {{backgroundColor: 'white'}}>
<FormInput style= {{backgroundColor: 'white'}}/>
</View>
<FormValidationMessage>{'Please enter your email!'}</FormValidationMessage>
<FormLabel>What's up?</FormLabel>
<View style= {{backgroundColor: 'white'}}>
<FormInput style= {{backgroundColor: 'white'}}/>
</View>
<FormValidationMessage>{'What do you want to tell us?'}</FormValidationMessage>
</View>

</ScrollView>
</View>
);
}


}

class Hamburger extends React.Component {
toggleDrawer = () => {
this.props.navigationProps.toggleDrawer();
}

render() {
return(
<View style = {{flexDirection: 'row'}}>
<TouchableOpacity onPress={this.toggleDrawer.bind(this)}>
<Icon
name = 'menu'
/>
</TouchableOpacity>
</View>
)
}
}


const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#000000',
color: '#fff'
},
textComp: {
backgroundColor: '#000000',
alignContent: 'center'

},
cardContainer: {
flex: 1,
backgroundColor: '#000000'
},
developmentModeText: {
marginBottom: 20,
color: 'rgba(0,0,0,0.4)',
fontSize: 14,
lineHeight: 19,
textAlign: 'center',
},
contentContainer: {
paddingTop: 30,
},
welcomeContainer: {
alignItems: 'center',
width: '100%',
marginTop: 10,
marginBottom: 20,
},
welcomeImage: {
width: 100,
height: 80,
resizeMode: 'contain',
marginTop: 3,
marginLeft: -10,
},
getStartedContainer: {
alignItems: 'center',
marginHorizontal: 50,
},
homeScreenFilename: {
marginVertical: 7,
},
codeHighlightText: {
color: 'rgba(96,100,109, 0.8)',
},
codeHighlightContainer: {
backgroundColor: 'rgba(0,0,0,0.05)',
borderRadius: 3,
paddingHorizontal: 4,
},
getStartedText: {
fontSize: 17,
color: 'rgba(96,100,109, 1)',
lineHeight: 24,
textAlign: 'center',
},
tabBarInfoContainer: {
position: 'absolute',
bottom: 0,
left: 0,
right: 0,
...Platform.select({
ios: {
shadowColor: 'black',
shadowOffset: { height: -3 },
shadowOpacity: 0.1,
shadowRadius: 3,
},
android: {
elevation: 20,
},
}),
alignItems: 'center',
backgroundColor: '#fbfbfb',
paddingVertical: 20,
},
tabBarInfoText: {
fontSize: 17,
color: 'rgba(96,100,109, 1)',
textAlign: 'center',
},
navigationFilename: {
marginTop: 5,
},
helpContainer: {
marginTop: 15,
alignItems: 'center',
},
helpLink: {
paddingVertical: 15,
},
helpLinkText: {
fontSize: 14,
color: '#2e78b7',
},
});