Commit 28959be9 by Giang Tran

update code

parent 849d40b1
...@@ -7,7 +7,6 @@ import rootReducer from './src/Reducers/index'; ...@@ -7,7 +7,6 @@ import rootReducer from './src/Reducers/index';
import RootView from './src/RootView'; import RootView from './src/RootView';
import createSagaMiddleware from 'redux-saga'; import createSagaMiddleware from 'redux-saga';
import rootSaga from './src/Saga/rootSaga'; import rootSaga from './src/Saga/rootSaga';
import FirebaseNotification from './src/helper/FirebaseNotification'; import FirebaseNotification from './src/helper/FirebaseNotification';
let bootSplashLogo = require('./src/assets/images/iconSplash.png'); let bootSplashLogo = require('./src/assets/images/iconSplash.png');
......
import React, {useEffect} from 'react'; import React, {useEffect} from 'react';
import {View, Text, ImageBackground, StyleSheet, StatusBar} from 'react-native'; import {
View,
Text,
ImageBackground,
StyleSheet,
StatusBar,
SafeAreaView,
} from 'react-native';
import {connect} from 'react-redux'; import {connect} from 'react-redux';
import StackNavigation from './routers/StackNavigation'; import StackNavigation from './routers/StackNavigation';
...@@ -25,13 +32,14 @@ const RootView = (props) => { ...@@ -25,13 +32,14 @@ const RootView = (props) => {
return ( return (
<> <>
<View style={{flex: 1}}> <View style={{flex: 1}}>
{/* <DropDown /> */}
<Modal isVisible={props.loadingModal.isVisible}> <Modal isVisible={props.loadingModal.isVisible}>
<SkypeIndicator color={'white'} /> <SkypeIndicator color={'white'} />
</Modal> </Modal>
<StackNavigation /> <StackNavigation />
</View> </View>
{/*<VersionChecker/>*/} {/*<VersionChecker/>*/}
{/* <DropDown /> */}
<NoInternetComponent /> <NoInternetComponent />
</> </>
); );
......
...@@ -90,22 +90,20 @@ const DropDown = () => { ...@@ -90,22 +90,20 @@ const DropDown = () => {
}; };
return ( return (
<View style={styles.container}> <DropdownAlert
<DropdownAlert ref={(ref) => {
ref={(ref) => { if (ref) {
if (ref) { dropDownAlertRef = ref;
dropDownAlertRef = ref; }
} }}
}} containerStyle={styles.content}
containerStyle={styles.content} showCancel={true}
showCancel={true} onCancel={_onCancel}
onCancel={_onCancel} onTap={_onTap}
onTap={_onTap} titleNumOfLines={2}
titleNumOfLines={2} messageNumOfLines={0}
messageNumOfLines={0} onClose={_onClose}
onClose={_onClose} />
/>
</View>
); );
}; };
...@@ -116,6 +114,7 @@ const styles = StyleSheet.create({ ...@@ -116,6 +114,7 @@ const styles = StyleSheet.create({
}, },
content: { content: {
backgroundColor: PURPLE_COLOR, backgroundColor: PURPLE_COLOR,
zIndex: 10,
}, },
size: { size: {
textAlign: 'center', textAlign: 'center',
......
...@@ -200,6 +200,7 @@ const HeaderHome = (props) => { ...@@ -200,6 +200,7 @@ const HeaderHome = (props) => {
<View style={styles.container}> <View style={styles.container}>
<SnackBar /> <SnackBar />
<StatusBar backgroundColor="transparent" translucent={true} /> <StatusBar backgroundColor="transparent" translucent={true} />
<View <View
style={{ style={{
justifyContent: 'center', justifyContent: 'center',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment