|
@@ -1,13 +1,12 @@
|
1
|
1
|
// @flow
|
2
|
2
|
|
3
|
3
|
import * as React from 'react';
|
4
|
|
-import {BackHandler, Image, View} from 'react-native';
|
|
4
|
+import {BackHandler, View} from 'react-native';
|
5
|
5
|
import i18n from "i18n-js";
|
6
|
|
-import ThemeManager from "../utils/ThemeManager";
|
7
|
6
|
import {LocaleConfig} from 'react-native-calendars';
|
8
|
7
|
import WebDataManager from "../utils/WebDataManager";
|
9
|
8
|
import PlanningEventManager from '../utils/PlanningEventManager';
|
10
|
|
-import {Text, Title, List, Avatar, Divider} from 'react-native-paper';
|
|
9
|
+import {Avatar, Divider, List} from 'react-native-paper';
|
11
|
10
|
import CustomAgenda from "../components/CustomAgenda";
|
12
|
11
|
|
13
|
12
|
LocaleConfig.locales['fr'] = {
|
|
@@ -31,7 +30,7 @@ type State = {
|
31
|
30
|
|
32
|
31
|
const FETCH_URL = "https://amicale-insat.fr/event/json/list";
|
33
|
32
|
|
34
|
|
-const AGENDA_MONTH_SPAN = 6;
|
|
33
|
+const AGENDA_MONTH_SPAN = 3;
|
35
|
34
|
|
36
|
35
|
/**
|
37
|
36
|
* Class defining the app's planning screen
|
|
@@ -138,7 +137,10 @@ export default class PlanningScreen extends React.Component<Props, State> {
|
138
|
137
|
<List.Item
|
139
|
138
|
title={item.title}
|
140
|
139
|
description={PlanningEventManager.getFormattedTime(item)}
|
141
|
|
- left={props => <Avatar.Image source={{uri: item.logo}} />}
|
|
140
|
+ left={props => <Avatar.Image
|
|
141
|
+ source={{uri: item.logo}}
|
|
142
|
+ style={{backgroundColor: 'transparent'}}
|
|
143
|
+ />}
|
142
|
144
|
onPress={onPress}
|
143
|
145
|
/>
|
144
|
146
|
</View>
|
|
@@ -164,9 +166,10 @@ export default class PlanningScreen extends React.Component<Props, State> {
|
164
|
166
|
}
|
165
|
167
|
|
166
|
168
|
rowHasChanged(r1: Object, r2: Object) {
|
167
|
|
- if (r1 !== undefined && r2 !== undefined)
|
168
|
|
- return r1.title !== r2.title;
|
169
|
|
- else return !(r1 === undefined && r2 === undefined);
|
|
169
|
+ return false;
|
|
170
|
+ // if (r1 !== undefined && r2 !== undefined)
|
|
171
|
+ // return r1.title !== r2.title;
|
|
172
|
+ // else return !(r1 === undefined && r2 === undefined);
|
170
|
173
|
}
|
171
|
174
|
|
172
|
175
|
/**
|