Rocket.Chat.ReactNative/app/views/AuthLoadingView.js

31 lines
575 B
JavaScript
Raw Normal View History

2019-03-12 16:23:06 +00:00
import React from 'react';
import { StyleSheet, Image } from 'react-native';
import StatusBar from '../containers/StatusBar';
import { isAndroid } from '../utils/deviceInfo';
2019-12-04 16:39:53 +00:00
import { withTheme } from '../theme';
2019-03-12 16:23:06 +00:00
const styles = StyleSheet.create({
image: {
width: '100%',
2019-11-25 20:01:17 +00:00
height: '100%',
backgroundColor: 'white'
2019-03-12 16:23:06 +00:00
}
});
2019-12-04 16:39:53 +00:00
export default React.memo(withTheme(({ theme }) => (
<>
2019-12-04 16:39:53 +00:00
<StatusBar theme={theme} />
{isAndroid
? (
<Image
source={{ uri: 'launch_screen' }}
style={styles.image}
resizeMode='contain'
/>
)
: null
}
</>
2019-12-04 16:39:53 +00:00
)));