Skip to content

Commit

Permalink
next screen
Browse files Browse the repository at this point in the history
  • Loading branch information
MianJawadAhmad committed Dec 7, 2019
1 parent e7bd32b commit f4ac33a
Show file tree
Hide file tree
Showing 34 changed files with 161 additions and 48 deletions.
49 changes: 27 additions & 22 deletions App/Containers/ClothsScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { ScrollView, KeyboardAvoidingView,ImageBackground,
ActivityIndicator,
Image,
TouchableOpacity } from 'react-native'
import {Header,Left,Body,Right,Container,Content,Footer, Text,Button} from 'native-base'
import {Header,Left,Body,Right,Container,Content,Footer, Text,Button, Icon} from 'native-base'
import { connect } from 'react-redux'
// Add Actions - replace 'Your' with whatever your reducer is called :)
// import YourActions from '../Redux/YourRedux'
Expand All @@ -18,48 +18,48 @@ const summer = [
{
id: 1,
title: 'Gul Ahmad',
img: require('../Images/men1.png'),
img: require('../Images/menn1.png'),
price: 350
},
{
id: 1,
title: 'Alkaram',
img: require('../Images/men2.png'),
img: require('../Images/menn2.png'),
price: 350
},
{
id: 1,
title: 'Grace',
img: require('../Images/men1.png'),
img: require('../Images/menn7.png'),
price: 350
},
{
id: 1,
title: 'Local',
img: require('../Images/men2.png'),
img: require('../Images/menn4.png'),
price: 350
},
{
id: 1,
title: 'UnStitched Cloths',
img: require('../Images/men1.png'),
title: 'Grace',
img: require('../Images/menn5.png'),
price: 350
},
{
id: 1,
title: 'Stitched Cloths',
img: require('../Images/men2.png'),
title: 'Gul Ahmad',
img: require('../Images/menn6.png'),
price: 350
}, {
id: 1,
title: 'UnStitched Cloths',
img: require('../Images/men1.png'),
title: 'Alkaram',
img: require('../Images/menn7.png'),
price: 350
},
{
id: 1,
title: 'Stitched Cloths',
img: require('../Images/men2.png'),
title: 'Grace',
img: require('../Images/menn2.png'),
price: 350
}
]
Expand Down Expand Up @@ -137,28 +137,33 @@ class ClothsScreen extends Component {
return (
<Container>
<Header>
<Left style={{flex:1}}>
<Button full style={{flex:1,borderWidth:2,backgroundColor:this.state.buttonColorm, borderColor:'black',justifyContent:'center'}}
<Left style={{flex:1}}>
<Icon style={{ fontSize: 50 }} name="arrow-round-back"
onPress={()=>this.props.navigation.navigate('HomeScreen')}/>
</Left>
<Right style={{flex:1}}>
</Right>
</Header>
<Content style={{flex:1,backgroundColor:'#F5F5F5'}}>
<View style={{flexDirection:'row',backgroundColor:'#F5F5F5',margin:10}}>
<Button full style={{flex:1,borderWidth:2,backgroundColor:this.state.buttonColorm, borderColor:'black',justifyContent:'center'}}
onPress={this.summer}>
<Text style={{color:this.state.textColorm}}>Summer</Text>
</Button>
</Left>
<Right style={{flex:1}}>
<Button full style={{flex:1,backgroundColor:this.state.buttonColorw, borderWidth:2, borderColor:'black',justifyContent:'center'}}
onPress={this.winter}>
<Text style={{color:this.state.textColorw}}>Winter</Text>
</Button>
</Right>
</Header>
<Content style={{flex:1}}>

</View>
<View style={styles.MainContainer}>
<FlatList
data={this.state.DISHES}
renderItem={({ item }) => (
<View style={{ flex: 1, flexDirection: 'column', margin: 5, justifyContent:'center' }}>
<Image style={styles.imageThumbnail} source={item.img} />
<Text style={{ alignContent:'center', fontSize:30}}>{item.title}</Text>
<Text style={{ alignContent:'center', fontSize:20}}>{item.price}</Text>
<Text style={{ alignContent:'center', fontSize:25}}>{item.title}</Text>
<Text style={{ alignContent:'center', fontSize:15}}>Rs {item.price}</Text>
</View>
)}
//Setting the number of column
Expand Down
3 changes: 2 additions & 1 deletion App/Containers/HomeScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ class HomeScreen extends Component {

const rows = this.state.DISHES.map((value, index) => {
return (
<Button style={{width:350,height:300, margin:30, justifyContent:'center', alignContent:'center', borderWidth:3,borderColor:'black'}}>
<Button style={{width:350,height:300, margin:30, justifyContent:'center', alignContent:'center', borderWidth:3,borderColor:'black'}}
onPress={()=>this.props.navigation.navigate('ClothsScreen')}>
<ImageBackground style={{width:350,height:300, justifyContent:'center', alignContent:'center'}} resizeMode='cover' source={value.img}>
<Text style={{color:'black',fontSize:30,marginLeft:50,marginRight:50, backgroundColor:'blue'}}>{value.title}</Text>
</ImageBackground>
Expand Down
2 changes: 2 additions & 0 deletions App/Containers/Styles/ClothsScreenStyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ export default StyleSheet.create({
justifyContent: 'center',
alignItems: 'center',
height: 100,
width:150,
margin:5
},
})
Binary file added App/Images/menn1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/Images/menn2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/Images/menn3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/Images/menn4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/Images/menn5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/Images/menn6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added App/Images/menn7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion App/Navigation/AppNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const PrimaryNav = createStackNavigator({
}, {
// Default config for all screens
headerMode: 'none',
initialRouteName: 'ClothsScreen',
initialRouteName: 'SplashScreen',
navigationOptions: {
headerStyle: styles.header
}
Expand Down
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ android {
}

dependencies {
implementation project(':react-native-vector-icons')
implementation project(':react-native-device-info')
implementation project(':react-native-gesture-handler')
implementation fileTree(dir: "libs", include: ["*.jar"])
Expand Down
Binary file added android/app/src/main/assets/fonts/AntDesign.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Entypo.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/EvilIcons.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Feather.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Fontisto.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Foundation.ttf
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Ionicons.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Octicons.ttf
Binary file not shown.
Binary file not shown.
Binary file added android/app/src/main/assets/fonts/Zocial.ttf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.app.Application;

import com.facebook.react.ReactApplication;
import com.oblador.vectoricons.VectorIconsPackage;
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import com.facebook.react.ReactNativeHost;
Expand All @@ -25,6 +26,7 @@ public boolean getUseDeveloperSupport() {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new VectorIconsPackage(),
new RNDeviceInfo(),
new RNGestureHandlerPackage()
);
Expand Down
2 changes: 2 additions & 0 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
rootProject.name = 'TechStitching'
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-vector-icons/android')
include ':react-native-device-info'
project(':react-native-device-info').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-device-info/android')
include ':react-native-gesture-handler'
Expand Down
Loading

0 comments on commit f4ac33a

Please sign in to comment.