-
Notifications
You must be signed in to change notification settings - Fork 0
/
SuggestScreen.js
42 lines (40 loc) · 1.04 KB
/
SuggestScreen.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import React, { Component } from "react";
import { View, Text, Button, TextInput, StyleSheet } from 'react-native';
const style = StyleSheet.create({
container: {
backgroundColor: '#AEB404',
flex: 1
},
text: {
fontSize: 30,
color: '#21610B',
textAlign: 'center'
},
Button: {
color: 'black',
fontSize: 40,
},
input: {
height: 40,
margin: 50,
borderWidth: 5,
padding: 10,
color: 'black'
},
})
export default class SuggestScreen extends Component {
render() {
return (
<View>
<Text style={{ fontSize: 30 }}>SuggestScreen</Text>
<TextInput
style={style.input}
placeholder="장소 제안하기" />
<Button onPress={() => this.backToPostScreen()} title='Back to Post' />
</View>
)
}
backToPostScreen() {
this.props.navigation.navigate('Post')
}
}