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,
|
showUpdate: false,
|
||||||
});
|
});
|
||||||
AsyncStorageManager.getInstance().savePref(AsyncStorageManager.getInstance().preferences.showIntro.key, '0');
|
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() {
|
async loadAssetsAsync() {
|
||||||
|
@ -95,7 +95,7 @@ export default class App extends React.Component<Props, State> {
|
||||||
isLoading: false,
|
isLoading: false,
|
||||||
currentTheme: ThemeManager.getCurrentTheme(),
|
currentTheme: ThemeManager.getCurrentTheme(),
|
||||||
showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1',
|
showIntro: AsyncStorageManager.getInstance().preferences.showIntro.current === '1',
|
||||||
showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate2.current === '1'
|
showUpdate: AsyncStorageManager.getInstance().preferences.showUpdate3.current === '1'
|
||||||
// showIntro: true
|
// showIntro: true
|
||||||
});
|
});
|
||||||
// Status bar goes dark if set too fast
|
// Status bar goes dark if set too fast
|
||||||
|
|
|
@ -105,7 +105,7 @@ export default class CustomIntroSlider extends React.Component<Props> {
|
||||||
key: '1',
|
key: '1',
|
||||||
title: i18n.t('intro.updateSlide.title'),
|
title: i18n.t('intro.updateSlide.title'),
|
||||||
text: i18n.t('intro.updateSlide.text'),
|
text: i18n.t('intro.updateSlide.text'),
|
||||||
icon: 'silverware-fork-knife',
|
icon: 'view-dashboard',
|
||||||
colors: ['#e01928', '#be1522'],
|
colors: ['#e01928', '#be1522'],
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -12,8 +12,6 @@ import PlatformTouchable from "react-native-platform-touchable";
|
||||||
import HTML from 'react-native-render-html';
|
import HTML from 'react-native-render-html';
|
||||||
import {LinearGradient} from 'expo-linear-gradient';
|
import {LinearGradient} from 'expo-linear-gradient';
|
||||||
|
|
||||||
import DATA from '../data_test'
|
|
||||||
|
|
||||||
|
|
||||||
const ICON_AMICALE = require('../assets/amicale.png');
|
const ICON_AMICALE = require('../assets/amicale.png');
|
||||||
const NAME_AMICALE = 'Amicale INSA Toulouse';
|
const NAME_AMICALE = 'Amicale INSA Toulouse';
|
||||||
|
@ -24,7 +22,7 @@ const SECTIONS_ID = [
|
||||||
'news_feed'
|
'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": {
|
"updateSlide": {
|
||||||
"title": "New in this update!",
|
"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": {
|
"buttons": {
|
||||||
"next": "Next",
|
"next": "Next",
|
||||||
|
|
|
@ -40,7 +40,7 @@
|
||||||
},
|
},
|
||||||
"updateSlide": {
|
"updateSlide": {
|
||||||
"title": "Nouveau dans cette mise à jour !",
|
"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": {
|
"buttons": {
|
||||||
"next": "Suivant",
|
"next": "Suivant",
|
||||||
|
|
|
@ -29,8 +29,8 @@ export default class AsyncStorageManager {
|
||||||
default: '1',
|
default: '1',
|
||||||
current: '',
|
current: '',
|
||||||
},
|
},
|
||||||
showUpdate2: {
|
showUpdate3: {
|
||||||
key: 'showUpdate2',
|
key: 'showUpdate3',
|
||||||
default: '1',
|
default: '1',
|
||||||
current: '',
|
current: '',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue