mirror of https://gitlab.com/m3f_usm/SmartStopAPK
feat: refactor header image + footer image is added
parent
91d1e0c5c0
commit
223554111f
|
@ -1,7 +1,3 @@
|
||||||
/**
|
|
||||||
* @format
|
|
||||||
*/
|
|
||||||
|
|
||||||
import {AppRegistry} from 'react-native';
|
import {AppRegistry} from 'react-native';
|
||||||
import {name as appName} from './app.json';
|
import {name as appName} from './app.json';
|
||||||
import App from './src/presentation/screens/App';
|
import App from './src/presentation/screens/App';
|
|
@ -9,4 +9,5 @@ export default {
|
||||||
collectCoverage: true,
|
collectCoverage: true,
|
||||||
collectCoverageFrom: ['src/**/*.{ts,tsx}'],
|
collectCoverageFrom: ['src/**/*.{ts,tsx}'],
|
||||||
transformIgnorePatterns: [`node_modules/(?!${esModules})`],
|
transformIgnorePatterns: [`node_modules/(?!${esModules})`],
|
||||||
|
moduleFileExtensions: ['js', 'ts', 'tsx'],
|
||||||
};
|
};
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
|
@ -47,22 +47,24 @@ const styles = StyleSheet.create({
|
||||||
backgroundColor: 'orange',
|
backgroundColor: 'orange',
|
||||||
},
|
},
|
||||||
contentContainer: {
|
contentContainer: {
|
||||||
flex: 1,
|
flex: 3,
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
alignItems: 'stretch',
|
alignItems: 'stretch',
|
||||||
},
|
},
|
||||||
icon: {
|
icon: {
|
||||||
width: 100,
|
flex: 1,
|
||||||
height: 100,
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
resizeMode: 'contain',
|
resizeMode: 'contain',
|
||||||
},
|
},
|
||||||
iconContainer: {
|
iconContainer: {
|
||||||
|
flex: 0.5,
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
marginHorizontal: 8,
|
marginHorizontal: 8,
|
||||||
},
|
},
|
||||||
titleContainer: {
|
titleContainer: {
|
||||||
flex: 1,
|
flex: 1.5,
|
||||||
flexDirection: 'column',
|
flexDirection: 'column',
|
||||||
justifyContent: 'center',
|
justifyContent: 'center',
|
||||||
marginHorizontal: 16,
|
marginHorizontal: 16,
|
||||||
|
|
|
@ -12,7 +12,7 @@ exports[`Header tests should render correctly 1`] = `
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"alignItems": "stretch",
|
"alignItems": "stretch",
|
||||||
"flex": 1,
|
"flex": 3,
|
||||||
"flexDirection": "row",
|
"flexDirection": "row",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@ exports[`Header tests should render correctly 1`] = `
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"alignItems": "center",
|
"alignItems": "center",
|
||||||
|
"flex": 0.5,
|
||||||
"justifyContent": "center",
|
"justifyContent": "center",
|
||||||
"marginHorizontal": 8,
|
"marginHorizontal": 8,
|
||||||
}
|
}
|
||||||
|
@ -34,9 +35,10 @@ exports[`Header tests should render correctly 1`] = `
|
||||||
}
|
}
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"height": 100,
|
"flex": 1,
|
||||||
|
"height": "100%",
|
||||||
"resizeMode": "contain",
|
"resizeMode": "contain",
|
||||||
"width": 100,
|
"width": "100%",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -44,7 +46,7 @@ exports[`Header tests should render correctly 1`] = `
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"flex": 1,
|
"flex": 1.5,
|
||||||
"flexDirection": "column",
|
"flexDirection": "column",
|
||||||
"justifyContent": "center",
|
"justifyContent": "center",
|
||||||
"marginHorizontal": 16,
|
"marginHorizontal": 16,
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {ActivityIndicator, StyleSheet, Text, View} from 'react-native';
|
import {ActivityIndicator, Image, StyleSheet, Text, View} from 'react-native';
|
||||||
import Container from '../components/Container';
|
import Container from '../components/Container';
|
||||||
import Header from '../components/Header';
|
import Header from '../components/Header';
|
||||||
import useDevices from '../../infraestructure/hooks/useDevices';
|
import useDevices from '../../infraestructure/hooks/useDevices';
|
||||||
|
@ -53,7 +53,10 @@ const BusStopInfoScreen = () => {
|
||||||
status={status}
|
status={status}
|
||||||
/>
|
/>
|
||||||
<View style={styles.footerContainer}>
|
<View style={styles.footerContainer}>
|
||||||
{/* {TODO: implement footer} */}
|
<Image
|
||||||
|
source={require('../../../resources/images/footer.jpg')}
|
||||||
|
style={styles.image}
|
||||||
|
/>
|
||||||
</View>
|
</View>
|
||||||
</Container>
|
</Container>
|
||||||
);
|
);
|
||||||
|
@ -81,7 +84,12 @@ const styles = StyleSheet.create({
|
||||||
},
|
},
|
||||||
footerContainer: {
|
footerContainer: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
backgroundColor: 'grey',
|
},
|
||||||
|
image: {
|
||||||
|
flex: 1,
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
resizeMode: 'contain',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ exports[`BusStopInfoScreen tests should render the screen with status success 1`
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"alignItems": "stretch",
|
"alignItems": "stretch",
|
||||||
"flex": 1,
|
"flex": 3,
|
||||||
"flexDirection": "row",
|
"flexDirection": "row",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -77,6 +77,7 @@ exports[`BusStopInfoScreen tests should render the screen with status success 1`
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"alignItems": "center",
|
"alignItems": "center",
|
||||||
|
"flex": 0.5,
|
||||||
"justifyContent": "center",
|
"justifyContent": "center",
|
||||||
"marginHorizontal": 8,
|
"marginHorizontal": 8,
|
||||||
}
|
}
|
||||||
|
@ -90,9 +91,10 @@ exports[`BusStopInfoScreen tests should render the screen with status success 1`
|
||||||
}
|
}
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"height": 100,
|
"flex": 1,
|
||||||
|
"height": "100%",
|
||||||
"resizeMode": "contain",
|
"resizeMode": "contain",
|
||||||
"width": 100,
|
"width": "100%",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
@ -100,7 +102,7 @@ exports[`BusStopInfoScreen tests should render the screen with status success 1`
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"flex": 1,
|
"flex": 1.5,
|
||||||
"flexDirection": "column",
|
"flexDirection": "column",
|
||||||
"justifyContent": "center",
|
"justifyContent": "center",
|
||||||
"marginHorizontal": 16,
|
"marginHorizontal": 16,
|
||||||
|
@ -2572,10 +2574,25 @@ exports[`BusStopInfoScreen tests should render the screen with status success 1`
|
||||||
<View
|
<View
|
||||||
style={
|
style={
|
||||||
{
|
{
|
||||||
"backgroundColor": "grey",
|
|
||||||
"flex": 1,
|
"flex": 1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/>
|
>
|
||||||
|
<Image
|
||||||
|
source={
|
||||||
|
{
|
||||||
|
"testUri": "../../../resources/images/footer.jpg",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
style={
|
||||||
|
{
|
||||||
|
"flex": 1,
|
||||||
|
"height": "100%",
|
||||||
|
"resizeMode": "contain",
|
||||||
|
"width": "100%",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
</View>
|
</View>
|
||||||
`;
|
`;
|
||||||
|
|
Loading…
Reference in New Issue