forked from vergnet/application-amicale
Added update intro slides
This commit is contained in:
parent
0e6719a274
commit
7ffa79481e
6 changed files with 8 additions and 10 deletions
4
App.js
4
App.js
|
@ -72,7 +72,7 @@ export default class App extends React.Component<Props, State> {
|
|||
showUpdate: false,
|
||||
});
|
||||
AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showIntro.key, '0');
|
||||
AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate2.key, '0');
|
||||
AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showUpdate3.key, '0');
|
||||
}
|
||||
|
||||
async loadAssetsAsync() {
|
||||
|
@ -95,7 +95,7 @@ export default class App extends React.Component<Props, State> {
|
|||
isLoading: false,
|
||||
currentTheme: ThemeManager.getCurrentTheme(),
|
||||
showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1',
|
||||
showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate2.current === '1'
|
||||
showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate3.current === '1'
|
||||
// showIntro: true
|
||||
});
|
||||
// Status bar goes dark if set too fast
|
||||
|
|
|
@ -105,7 +105,7 @@ export default class CustomIntroSlider extends React.Component<Props> {
|
|||
key: '1',
|
||||
title: i18n.t('intro.updateSlide.title'),
|
||||
text: i18n.t('intro.updateSlide.text'),
|
||||
icon: 'silverware-fork-knife',
|
||||
icon: 'view-dashboard',
|
||||
colors: ['#e01928', '#be1522'],
|
||||
},
|
||||
]
|
||||
|
|
|
@ -12,8 +12,6 @@ import PlatformTouchable from "react-native-platform-touchable";
|
|||
import HTML from 'react-native-render-html';
|
||||
import {LinearGradient} from 'expo-linear-gradient';
|
||||
|
||||
import DATA from '../data_test'
|
||||
|
||||
|
||||
const ICON_AMICALE = require('../assets/amicale.png');
|
||||
const NAME_AMICALE = 'Amicale INSA Toulouse';
|
||||
|
@ -24,7 +22,7 @@ const SECTIONS_ID = [
|
|||
'news_feed'
|
||||
];
|
||||
|
||||
const REFRESH_TIME = 1000 * 10; // Refresh every 10 seconds
|
||||
const REFRESH_TIME = 1000 * 20; // Refresh every 20 seconds
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
},
|
||||
"updateSlide": {
|
||||
"title": "New in this update!",
|
||||
"text": "The RU menu is new and fresh!\nAvailable in the left side menu!"
|
||||
"text": "Say hello to the brand new dashboard!\nGet a quick look at the most important information right from the home screen!"
|
||||
},
|
||||
"buttons": {
|
||||
"next": "Next",
|
||||
|
|
|
@ -40,7 +40,7 @@
|
|||
},
|
||||
"updateSlide": {
|
||||
"title": "Nouveau dans cette mise à jour !",
|
||||
"text": "Le menu du RU est tout beau tout neuf !\nAccessible depuis le menu à gauche"
|
||||
"text": "Dites bonjour à la toute nouvelle Dashboard !\nAccédez rapidement aux informations les plus importantes depuis l'écran d'accueil !"
|
||||
},
|
||||
"buttons": {
|
||||
"next": "Suivant",
|
||||
|
|
|
@ -29,8 +29,8 @@ export default class AsyncStorageManager {
|
|||
default: '1',
|
||||
current: '',
|
||||
},
|
||||
showUpdate2: {
|
||||
key: 'showUpdate2',
|
||||
showUpdate3: {
|
||||
key: 'showUpdate3',
|
||||
default: '1',
|
||||
current: '',
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue