@@ -7,9 +7,10 @@ import {
77 Keyboard ,
88 Text ,
99 ActivityIndicator ,
10- TouchableOpacity ,
1110 Modal ,
11+ View ,
1212} from 'react-native' ;
13+ import Icon from 'react-native-vector-icons/FontAwesome' ;
1314import styled from 'styled-components' ;
1415import CardContainer from './components/CardContainer' ;
1516import TimeAgo from 'time-ago' ;
@@ -52,18 +53,12 @@ const CommentDate = styled.Text`
5253 fontSize: 12;
5354` ;
5455const InputContainer = styled . View `
55- display: flex;
56- flex: 1;
5756 flex-direction: row;
58- align-items: flex-end;
5957 background-color: ${ colors . white } ;
60- position: absolute;
61- bottom: 0;
6258` ;
6359const Button = styled . TouchableOpacity `
6460 padding: 3%;
65- align-self: center;
66- background-color: ${ colors . themeBlue } ;
61+ background-color: ${ colors . black } ;
6762` ;
6863const EndOfViewStyle = styled . View `
6964 flex: 1;
@@ -171,9 +166,9 @@ class GistCommentsScreen extends React.Component {
171166
172167 renderList = comments => {
173168 return (
174- < React . Fragment >
169+ < View style = { { flex : 1 } } >
175170 < FlatList
176- style = { { marginBottom : '11%' , flexGrow : 1 } }
171+ style = { { marginBottom : '11%' , flex : 1 } }
177172 keyExtractor = { item => item . id }
178173 data = { comments }
179174 renderItem = { this . renderItem }
@@ -186,7 +181,7 @@ class GistCommentsScreen extends React.Component {
186181 < InputContainer >
187182 < TextInput
188183 style = { {
189- width : '82%' ,
184+ flex : 1 ,
190185 } }
191186 placeholder = "Add comment here"
192187 value = { this . state . comment }
@@ -195,7 +190,7 @@ class GistCommentsScreen extends React.Component {
195190 />
196191 < Button
197192 onPress = { this . onPressItem } >
198- < Text style = { { color : colors . white , fontWeight : '600' } } > Submit </ Text >
193+ < Icon color = { colors . white } size = { 25 } name = "send" / >
199194 </ Button >
200195 </ InputContainer >
201196 < Modal
@@ -204,7 +199,7 @@ class GistCommentsScreen extends React.Component {
204199 transparent >
205200 < GistOptions onDelete = { this . deleteComment } onCancel = { this . onCancel } />
206201 </ Modal >
207- </ React . Fragment >
202+ </ View >
208203 ) ;
209204 }
210205
0 commit comments