Skip to content

Commit

Permalink
add header logo
Browse files Browse the repository at this point in the history
  • Loading branch information
Ujjal Acharya committed Sep 14, 2020
1 parent 48b272b commit e0de869
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 22 deletions.
3 changes: 3 additions & 0 deletions app/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from "react";
import {StatusBar} from "react-native";
import { Provider } from "react-redux";
import { createStore, applyMiddleware, compose } from "redux";

Expand All @@ -7,6 +8,7 @@ import promiseMiddleware from "redux-promise";
import Main from "./src";

import reducers from "./src/store/reducers";
import ConstantColors from "./src/constants/ConstantColors";

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;

Expand All @@ -19,6 +21,7 @@ class App extends React.Component {
render() {
return (
<Provider store={createStoreWithMiddleware}>
<StatusBar backgroundColor={ConstantColors.tintColor} />
<Main />
</Provider>
);
Expand Down
Binary file added app/assets/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 12 additions & 18 deletions app/src/components/Banner.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
import React, { Component } from "react";
import { Text, View, StyleSheet } from "react-native";
import { Button, Colors } from "react-native-paper";
import { Text, View, StyleSheet, Image } from "react-native";
import ConstantColors from "../constants/ConstantColors";

export class Banner extends Component {
render() {
return (
// <View style={{flex: 1, backgroundColor: "green", width: "100%"}}>
<Button
mode="contained"
color={ConstantColors.tintColor}
style={styles.sloganButton}
onPress={() => console.log("Pressed")}
>
<Text style={{ color: "white", fontSize: 20 }}>DHANGAADI</Text>
</Button>
// </View>
<View style={styles.sloganButton}>
<Image
style={styles.tinyLogo}
source={require("../../assets/logo.png")}
/>
</View>
);
}
}
Expand All @@ -24,13 +19,12 @@ const styles = StyleSheet.create({
sloganButton: {
flex: 1,
justifyContent: "center",
// width: "150%",
// height: "40%",
// borderRadius: 40,
borderWidth: 1,
alignItems: "center",
borderColor: ConstantColors.tintColor,
// elevation: 20,
// marginTop: 20
},
tinyLogo: {
height: 40,
width: 200,
},
});

Expand Down
6 changes: 2 additions & 4 deletions app/src/screens/HomeScreen/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,16 +131,14 @@ export class Test extends Component {
/>
<SafeAreaView
style={{
height: 250,
height: 150,
backgroundColor: ConstantColors.tintColor,
justifyContent: "center",
}}
>
<Banner />
</SafeAreaView>
<View style={{ height: 380, alignItems: "center", marginTop: -100 }}>
<View style={{ height: 380, alignItems: "center", marginTop: -50 }}>
<Card style={{ height: "100%", width: "90%" }}>
{/* <View style={styles.searchbarContainer}></View> */}
<View style={{ height: "50%", marginHorizontal: 20 }}>
<TouchableRipple
style={{
Expand Down

0 comments on commit e0de869

Please sign in to comment.