Skip to content

Commit

Permalink
Added icons and final build.
Browse files Browse the repository at this point in the history
  • Loading branch information
wantedbear007 committed Jun 7, 2022
1 parent 76954e0 commit 9634390
Show file tree
Hide file tree
Showing 45 changed files with 44 additions and 114 deletions.
1 change: 1 addition & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -317,3 +317,4 @@ def isNewArchitectureEnabled() {
// - Set an environment variable `ORG_GRADLE_PROJECT_newArchEnabled=true`
return project.hasProperty("newArchEnabled") && project.newArchEnabled == "true"
}

Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.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 modified android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
2 changes: 1 addition & 1 deletion android/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">eternityNews</string>
<string name="app_name">Eternity News</string>
</resources>
4 changes: 4 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ allprojects {
maven { url 'https://www.jitpack.io' }
}
}
project.ext.react = [
entryFile: "index.js",
enableHermes: true
]
10 changes: 0 additions & 10 deletions assets/UI/colors.js

This file was deleted.

8 changes: 3 additions & 5 deletions components/Explore/CryptoSection.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import React from 'react';
import {View, Text, StyleSheet, Image} from 'react-native';
// import CryptoPrices from '../../services/CryptoPrices';
import colors from '../../assets/UI/colors';

const CryptoSection = ({cryptoPrice}) => {
return (
Expand Down Expand Up @@ -66,16 +64,16 @@ const styles = StyleSheet.create({
alignItems: 'center',
},
name: {
color: colors.white,
color: '#fff',
fontWeight: '500',
fontSize: 10,
},
price: {
color: colors.white,
color: '#fff',
fontSize: 13,
},
percentage: {
color: colors.text,
color: '#000',
fontSize: 10,
fontWeight: '600',
},
Expand Down
41 changes: 0 additions & 41 deletions components/Explore/WordSection.js

This file was deleted.

1 change: 0 additions & 1 deletion components/Home/Contents.js

This file was deleted.

15 changes: 4 additions & 11 deletions components/Home/DailyRead.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,16 @@ const DailyRead = ({navigation, colors}) => {
try {
const jsonVal = JSON.stringify(val);
await AsyncStorage.setItem('newsData', jsonVal);
} catch (e) {
console.log(e);
}
} catch (e) {}
};

const getStoredData = async () => {
try {
const fetchedNewsData = await AsyncStorage.getItem('newsData');
const fetchedJSON = JSON.parse(fetchedNewsData);
setNews(fetchedJSON);
setLoading(false)
} catch (e) {
console.log(e);
}
setLoading(false);
} catch (e) {}
};

useEffect(() => {
Expand All @@ -44,9 +40,7 @@ const DailyRead = ({navigation, colors}) => {
storeData(response.data.articles);
setLoading(false);
});
} catch (error) {
console.log(error);
}
} catch (error) {}
}, [newsQuantity]);

const renderItems = ({item}) => {
Expand All @@ -59,7 +53,6 @@ const DailyRead = ({navigation, colors}) => {
}
};


// Infinite Scrolling
const infiniteScrolling = () => {
if (newsQuantity >= 250) {
Expand Down
14 changes: 5 additions & 9 deletions components/Home/TopHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ const TopHeader = ({colors, icons}) => {
<View style={styles.textContainer}>
<Text style={[styles.title, {color: colors.text}]}>Discover</Text>
<Text style={[styles.slogan, {color: colors.accent}]}>
Read the World Today!
{/* Read the World Today! */}
Better informed briefly.
</Text>
</View>
<TouchableOpacity onPress={themeButtonHandler}>
Expand All @@ -23,12 +24,7 @@ const TopHeader = ({colors, icons}) => {
) : (
<IconRender icon={moonIcon} onPress={themeButtonHandler} />
)}
{/* <Ionicons
name={!darkTheme ? 'moon' : 'sunny'}
size={24}
color={colors.text}
style={{marginRight: 10}}
/> */}

</TouchableOpacity>
</View>
);
Expand All @@ -44,12 +40,12 @@ const styles = StyleSheet.create({
},

title: {
fontSize: 30,
fontSize: 33,
fontWeight: '800',
},
slogan: {
marginBottom: 7,
fontSize: 10,
fontSize: 11,
},
});

Expand Down
4 changes: 2 additions & 2 deletions components/Home/TrendingNews.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const TrendingNews = ({colors, navigation}) => {
const jsonVal = JSON.stringify(val);
await AsyncStorage.setItem('trendingNews', jsonVal);
} catch (e) {
console.log(e);

}
};

Expand All @@ -27,7 +27,7 @@ const TrendingNews = ({colors, navigation}) => {
setLoading(false);
setNews(fetchedJSON);
} catch (e) {
console.log(e);

}
};

Expand Down
6 changes: 3 additions & 3 deletions context/Context.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Appearance } from 'react-native';
const Context = createContext();

export function ContextContainer({children}) {
const [darkTheme, setDarkTheme] = useState(false);
const [darkTheme, setDarkTheme] = useState(true);
const systemTheme = Appearance.getColorScheme()
useEffect(() => {
const getData = async () => {
Expand All @@ -15,7 +15,7 @@ export function ContextContainer({children}) {
setDarkTheme(true);
}
} catch (e) {
console.log(e);

}
};

Expand All @@ -28,7 +28,7 @@ export function ContextContainer({children}) {
const jsonVal = JSON.stringify(darkTheme);
await AsyncStorage.setItem('theme', jsonVal);
} catch (e) {
console.log(e);

}
};

Expand Down
18 changes: 9 additions & 9 deletions screens/Explore.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const Explore = ({navigation}) => {
const fetchedNewsData = await AsyncStorage.getItem('username');
setUserName(fetchedNewsData);
} catch (e) {
console.log(e);

}
};

Expand All @@ -50,7 +50,7 @@ const Explore = ({navigation}) => {
response.json().then(response => setNasaData(response)),
);
} catch (err) {
console.log(err);

}
// IMAGE REQUEST
const url = 'https://picsum.photos/v2/list?page=' + pageNumber + '&limit=5';
Expand All @@ -59,7 +59,7 @@ const Explore = ({navigation}) => {
.then(response => response.json())
.then(data => setImageData(data));
} catch (err) {
console.log(err);

}

// AFFIRMATION REQUEST
Expand All @@ -68,7 +68,7 @@ const Explore = ({navigation}) => {
.then(response => response.json())
.then(data => setAffirmation(data.affirmation));
} catch (error) {
console.log(err);

}

// CRYPTO REQUEST
Expand All @@ -79,7 +79,7 @@ const Explore = ({navigation}) => {
response.json().then(response => setCryptoPrices(response)),
);
} catch (error) {
console.log(err);

}
GetQuotes();
GetJokes();
Expand All @@ -94,7 +94,7 @@ const Explore = ({navigation}) => {
setQuote({qte: data.content, author: data.author});
});
} catch (err) {
console.log(err);

}
};

Expand Down Expand Up @@ -162,7 +162,6 @@ const Explore = ({navigation}) => {
{Greeting} {userName} !
</Text>
{loading ? <SkeletonExplore /> : <RenderContent />}
{/* <RenderContent /> */}
</ScrollView>
</Card>
);
Expand All @@ -182,7 +181,7 @@ const styles = StyleSheet.create({
alignItems: 'center',
},
headingText: {
fontSize: 25,
fontSize: 31,
marginLeft: 5,
fontWeight: '800',
},
Expand All @@ -191,7 +190,8 @@ const styles = StyleSheet.create({
marginLeft: 23,
paddingTop: 20,
textAlign: 'center',
letterSpacing: 1.5,
letterSpacing: 1.2,
fontStyle: 'italic'
},
divider: {
borderWidth: 1,
Expand Down
2 changes: 1 addition & 1 deletion screens/InfoPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const InfoPage = ({navigation}) => {
const jsonVal = JSON.stringify(txt);
await AsyncStorage.setItem('username', jsonVal);
} catch (e) {
console.log(e);

}
};

Expand Down
16 changes: 11 additions & 5 deletions screens/LoadingPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ const LoadingPage = ({navigation}) => {
} else {
navigation.replace('InfoPage');
}
} catch (e) {
console.log(e);
}
} catch (e) {}
};

React.useEffect(() => {
Expand All @@ -26,8 +24,16 @@ const LoadingPage = ({navigation}) => {

return (
<Card>
<View style={{alignItems: 'center', justifyContent: 'center', flex: 1, backgroundColor: colors.text}}>
<Text style={{fontSize: 30, color: colors.background}}>Eternity News</Text>
<View
style={{
alignItems: 'center',
justifyContent: 'center',
flex: 1,
backgroundColor: colors.background,
}}>
<Text style={{fontSize: 30, color: colors.text}}>
Eternity News
</Text>
</View>
</Card>
);
Expand Down
16 changes: 0 additions & 16 deletions services/News.js

This file was deleted.

0 comments on commit 9634390

Please sign in to comment.