Browse Source

Added update intro slides

keplyx 4 years ago
parent
commit
7ffa79481e

+ 2
- 2
App.js View File

72
             showUpdate: false,
72
             showUpdate: false,
73
         });
73
         });
74
         AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showIntro.key, '0');
74
         AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showIntro.key, '0');
75
-        AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate2.key, '0');
75
+        AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate3.key, '0');
76
     }
76
     }
77
 
77
 
78
     async loadAssetsAsync() {
78
     async loadAssetsAsync() {
95
             isLoading: false,
95
             isLoading: false,
96
             currentTheme: ThemeManager.getCurrentTheme(),
96
             currentTheme: ThemeManager.getCurrentTheme(),
97
             showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1',
97
             showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1',
98
-            showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate2.current === '1'
98
+            showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate3.current === '1'
99
             // showIntro: true
99
             // showIntro: true
100
         });
100
         });
101
         // Status bar goes dark if set too fast
101
         // Status bar goes dark if set too fast

+ 1
- 1
components/CustomIntroSlider.js View File

105
                 key: '1',
105
                 key: '1',
106
                 title: i18n.t('intro.updateSlide.title'),
106
                 title: i18n.t('intro.updateSlide.title'),
107
                 text: i18n.t('intro.updateSlide.text'),
107
                 text: i18n.t('intro.updateSlide.text'),
108
-                icon: 'silverware-fork-knife',
108
+                icon: 'view-dashboard',
109
                 colors: ['#e01928', '#be1522'],
109
                 colors: ['#e01928', '#be1522'],
110
             },
110
             },
111
         ]
111
         ]

+ 1
- 3
screens/HomeScreen.js View File

12
 import HTML from 'react-native-render-html';
12
 import HTML from 'react-native-render-html';
13
 import {LinearGradient} from 'expo-linear-gradient';
13
 import {LinearGradient} from 'expo-linear-gradient';
14
 
14
 
15
-import DATA from '../data_test'
16
-
17
 
15
 
18
 const ICON_AMICALE = require('../assets/amicale.png');
16
 const ICON_AMICALE = require('../assets/amicale.png');
19
 const NAME_AMICALE = 'Amicale INSA Toulouse';
17
 const NAME_AMICALE = 'Amicale INSA Toulouse';
24
     'news_feed'
22
     'news_feed'
25
 ];
23
 ];
26
 
24
 
27
-const REFRESH_TIME = 1000 * 10; // Refresh every 10 seconds
25
+const REFRESH_TIME = 1000 * 20; // Refresh every 20 seconds
28
 
26
 
29
 
27
 
30
 /**
28
 /**

+ 1
- 1
translations/en.json View File

40
     },
40
     },
41
     "updateSlide": {
41
     "updateSlide": {
42
       "title": "New in this update!",
42
       "title": "New in this update!",
43
-      "text": "The RU menu is new and fresh!\nAvailable in the left side menu!"
43
+      "text": "Say hello to the brand new dashboard!\nGet a quick look at the most important information right from the home screen!"
44
     },
44
     },
45
     "buttons": {
45
     "buttons": {
46
       "next": "Next",
46
       "next": "Next",

+ 1
- 1
translations/fr.json View File

40
     },
40
     },
41
     "updateSlide": {
41
     "updateSlide": {
42
       "title": "Nouveau dans cette mise à jour !",
42
       "title": "Nouveau dans cette mise à jour !",
43
-      "text": "Le menu du RU est tout beau tout neuf !\nAccessible depuis le menu à gauche"
43
+      "text": "Dites bonjour à la toute nouvelle Dashboard !\nAccédez rapidement aux informations les plus importantes depuis l'écran d'accueil !"
44
     },
44
     },
45
     "buttons": {
45
     "buttons": {
46
       "next": "Suivant",
46
       "next": "Suivant",

+ 2
- 2
utils/AsyncStorageManager.js View File

29
             default: '1',
29
             default: '1',
30
             current: '',
30
             current: '',
31
         },
31
         },
32
-        showUpdate2: {
33
-            key: 'showUpdate2',
32
+        showUpdate3: {
33
+            key: 'showUpdate3',
34
             default: '1',
34
             default: '1',
35
             current: '',
35
             current: '',
36
         },
36
         },

Loading…
Cancel
Save