-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from Etlas-SCU/dev
Dev
- Loading branch information
Showing
26 changed files
with
667 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: update | ||
on: push | ||
|
||
jobs: | ||
update: | ||
name: EAS Update | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check for EXPO_TOKEN | ||
run: | | ||
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then | ||
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions" | ||
exit 1 | ||
fi | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
cache: yarn | ||
|
||
- name: Setup EAS | ||
uses: expo/expo-github-action@v8 | ||
with: | ||
eas-version: latest | ||
token: ${{ secrets.EXPO_TOKEN }} | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Publish update | ||
run: eas update --auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { View, Text, ScrollView, Image, TouchableOpacity } from "react-native"; | ||
import { styles } from "./Styles"; | ||
import { useState } from "react"; | ||
|
||
|
||
export default function ArticleDetails({ navigation, route }) { | ||
|
||
let images_src = Array(5).fill(require('../../assets/TourPage/Tour1.png')); | ||
const images = images_src.map((src, idx) => (<Image source={src} style={styles.image} key={idx}/>)); | ||
|
||
// get the parameters needed | ||
const { Article, screen } = route.params; | ||
const { Title, Date, Img, fullDescription } = Article; | ||
|
||
|
||
// get the icons of heart | ||
const fav = require('../../assets/ArticleDetails/filled.png'); | ||
const notFav = require('../../assets/ArticleDetails/notfilled.png'); | ||
|
||
// get the icons of heart | ||
const [favIcon, setFavIcon] = useState(notFav); | ||
|
||
// change the icon of heart | ||
const toggleFav = () => { | ||
setFavIcon(fav == favIcon ? notFav : fav); | ||
} | ||
|
||
return ( | ||
<View style={styles.container}> | ||
<TouchableOpacity | ||
onPress={() => { navigation.navigate(screen) }} | ||
> | ||
<Image source={require('../../assets/Scan/Arr.png')} style={styles.back}/> | ||
</TouchableOpacity> | ||
<Image source={Img} style={styles.upperBox} resizeMode='cover'/> | ||
<View style={styles.lowerBox}> | ||
<View style={styles.upperFields}> | ||
<View style={styles.txts}> | ||
<Text style={styles.title}>{Title}</Text> | ||
<Text style={styles.date}>{Date}</Text> | ||
</View> | ||
<View style={styles.favouriteConainer}> | ||
<View style={styles.fav}> | ||
<TouchableOpacity onPress={toggleFav}> | ||
<Image source={favIcon} style={styles.favIcon} resizeMode="contain"/> | ||
</TouchableOpacity> | ||
</View> | ||
</View> | ||
</View> | ||
<ScrollView contentContainerStyle={styles.scrollView} showsVerticalScrollIndicator={false}> | ||
<Text style={styles.description}>{fullDescription}</Text> | ||
</ScrollView> | ||
</View> | ||
</View> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
import { StyleSheet } from "react-native"; | ||
import { colors, fontFamily, responsiveFontSize, responsiveHeight, responsiveWidth, dimensions } from "../../AppStyles"; | ||
|
||
export const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: colors.White, | ||
}, | ||
back: { | ||
width: responsiveWidth(32), | ||
height: responsiveHeight(32), | ||
right: responsiveWidth(24), | ||
top: responsiveHeight(60), | ||
position: 'absolute', | ||
tintColor: colors.SolidGrey, | ||
zIndex: 999 | ||
}, | ||
upperBox: { | ||
width: dimensions.fullWidth, | ||
height: responsiveHeight(431), | ||
zIndex: -1 | ||
}, | ||
lowerBox: { | ||
flex: 1, | ||
backgroundColor: colors.DarkCyan, | ||
borderTopLeftRadius: responsiveWidth(30), | ||
borderTopRightRadius: responsiveWidth(30), | ||
marginTop: responsiveHeight(-30), | ||
}, | ||
title: { | ||
fontFamily: fontFamily.MontserratBold, | ||
fontSize: responsiveFontSize(22), | ||
color: colors.Gold, | ||
}, | ||
date: { | ||
fontFamily: fontFamily.MontserratRegular, | ||
fontSize: responsiveFontSize(12), | ||
color: colors.White, | ||
}, | ||
scrollView: { | ||
marginTop: responsiveHeight(32), | ||
marginHorizontal: responsiveWidth(24), | ||
paddingBottom: responsiveHeight(150) | ||
}, | ||
description: { | ||
fontFamily: fontFamily.MontserratRegular, | ||
fontSize: responsiveFontSize(18), | ||
color: colors.White, | ||
}, | ||
upperFields: { | ||
flexDirection: 'row', | ||
justifyContent: 'space-between', | ||
marginHorizontal: responsiveWidth(24), | ||
marginTop: responsiveHeight(22), | ||
}, | ||
txts: { | ||
gap: responsiveHeight(5) | ||
}, | ||
favouriteConainer: { | ||
justifyContent: 'center' | ||
}, | ||
fav: { | ||
width: responsiveWidth(64), | ||
height: responsiveHeight(64), | ||
borderRadius: 20, | ||
backgroundColor: colors.DarkRed, | ||
justifyContent: 'center', | ||
}, | ||
favIcon: { | ||
width: responsiveWidth(39.75), | ||
height: responsiveHeight(35.26), | ||
alignSelf: 'center', | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.