Skip to content
This repository was archived by the owner on Apr 30, 2023. It is now read-only.

Commit f3f6adf

Browse files
author
Arjun
authored
Merge pull request #9 from Arjun-sna/style_fixes
Style fixes
2 parents e995e36 + f44d9ec commit f3f6adf

File tree

2 files changed

+13
-17
lines changed

2 files changed

+13
-17
lines changed

src/auth/splash.saga.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ export const rehydratedSelector = state => state.app.autoRehydrated;
88

99
export default function* appLoader() {
1010
try {
11-
yield call(codePush.sync, {
12-
// install them immediately
13-
installMode: codePush.InstallMode.IMMEDIATE,
14-
});
11+
if (!__DEV__) {
12+
codePush.sync({
13+
installMode: codePush.InstallMode.IMMEDIATE,
14+
});
15+
}
1516
const rehydrated = yield select(rehydratedSelector);
1617

1718
if (!rehydrated) {

src/gists/screens/gistComments.screen.js

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -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';
1314
import styled from 'styled-components';
1415
import CardContainer from './components/CardContainer';
1516
import TimeAgo from 'time-ago';
@@ -52,18 +53,12 @@ const CommentDate = styled.Text`
5253
fontSize: 12;
5354
`;
5455
const 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
`;
6359
const Button = styled.TouchableOpacity`
6460
padding: 3%;
65-
align-self: center;
66-
background-color: ${colors.themeBlue};
61+
background-color: ${colors.black};
6762
`;
6863
const 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

Comments
 (0)