Browse Source

Fix background color error on load

keplyx 4 years ago
parent
commit
af352c86c7
1 changed files with 4 additions and 3 deletions
  1. 4
    3
      screens/HomeScreen.js

+ 4
- 3
screens/HomeScreen.js View File

@@ -1,7 +1,7 @@
1 1
 // @flow
2 2
 
3 3
 import * as React from 'react';
4
-import {Image, Linking, RefreshControl, FlatList} from 'react-native';
4
+import {Image, View, Linking, RefreshControl, FlatList} from 'react-native';
5 5
 import {Container, Content, Text, Button, Card, CardItem, Left, Body, Thumbnail, H2, Toast} from 'native-base';
6 6
 import CustomHeader from '../components/CustomHeader';
7 7
 import i18n from "i18n-js";
@@ -19,7 +19,7 @@ type State = {
19 19
     data: Object,
20 20
 };
21 21
 
22
-const FB_URL = "https://graph.facebook.com/v3.3/amicale.deseleves/posts?fields=message%2Cfull_picture%2Ccreated_time%2Cpermalink_url&access_token=EAAGliUs4Ei8BAC9J8U6EpL8LKLImMhvcgBq6iWK2BPDAhjZB7v4t8Fy5q3SsdfUq8nPovQfyFmwURSrNGWypwwBC1VZAf7Vmfff76UkpZCm0KTp56TRVK0NkH9YI4kRO8VqEucejFCBPQZBflZASwSbfRGZBLi4FWqBopBTEZCXg7RZAiMM02WXKXcc7b3AOl6wZD";
22
+const FB_URL = "https://graph.facebook.com/v3.3/amicale.deseleves/posts?fields=message%2Cfull_picture%2Ccreated_time%2Cpermalink_url&access_token=EAAGliUs4Ei8BAHRO8Gch8noIZCdQfgWztBKCvWy8MaKGMdWug1qUV2h4M3WzyUo8kbja1qhRdc8ZA1FzQDGbJZCxVtUakzFVvNpgC1SbJbtueA1rzlMCF5wuPinaKNyZCwH7JaqdUFbD9RnD6lOMCJ6XBeO0sojL2PBdEZAov6j6EZAOvjgykfG0ZB5E7EmxebrXWSQLBFoEAZDZD";
23 23
 
24 24
 let test_data = [
25 25
     {
@@ -125,7 +125,7 @@ export default class HomeScreen extends React.Component<Props, State> {
125 125
                 </CardItem>
126 126
                 <CardItem>
127 127
                     <Left>
128
-                        <Button transparent info
128
+                        <Button transparent
129 129
                         onPress={() => openWebLink(item.permalink_url)}>
130 130
                             <CustomMaterialIcon
131 131
                                 icon="facebook"
@@ -167,6 +167,7 @@ export default class HomeScreen extends React.Component<Props, State> {
167 167
                         renderItem={({item}) =>
168 168
                             this.getRenderItem(item)
169 169
                         }
170
+                        style={{minHeight: 300, width: '100%'}}
170 171
                     />
171 172
                 </Content>
172 173
             </Container>

Loading…
Cancel
Save