Skip to content

Commit

Permalink
upload files
Browse files Browse the repository at this point in the history
  • Loading branch information
vlipatdev committed Sep 12, 2021
0 parents commit c090563
Show file tree
Hide file tree
Showing 62 changed files with 23,916 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
node_modules/**/*
.expo/*
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/
web-report/

# macOS
.DS_Store
23 changes: 23 additions & 0 deletions App.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';

import * as eva from '@eva-design/eva';
import { ApplicationProvider, IconRegistry } from '@ui-kitten/components';
import { EvaIconsPack } from '@ui-kitten/eva-icons';

import { default as theme } from './themes/light-theme.json';
import { AppNavigator } from './screens/navigation';
import { StatusBarSpacer } from './components/StatusBarSpacer';

const App = () => {
return (
<>
<IconRegistry icons={EvaIconsPack} />
<ApplicationProvider {...eva} theme={{ ...eva.light, ...theme }}>
<StatusBarSpacer />
<AppNavigator />
</ApplicationProvider>
</>
);
};

export default App;
5 changes: 5 additions & 0 deletions api/iridiumlab.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import axios from 'axios';

export const iridiumlab = axios.create({
baseURL: 'https://iridiumlab.herokuapp.com/science',
});
28 changes: 28 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"expo": {
"name": "Science News",
"slug": "science-news",
"android": {
"package": "com.iridiumlab.sciencenews",
"enableDangerousExperimentalLeanBuilds": false,
"versionCode": 47,
"permissions": [],
"config": {
"googleMobileAdsAppId": "ca-app-pub-7459960426696151~9566120136"
}
},
"platforms": ["android"],
"version": "2.1.16",
"orientation": "portrait",
"icon": "./assets/icon.png",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 5000
},
"assetBundlePatterns": ["**/*"]
}
}
Binary file added assets/icon.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 assets/illustrations/no_bookmarks.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 assets/illustrations/no_connection.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 assets/illustrations/no_results.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 assets/illustrations/rate.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 assets/illustrations/search.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 assets/illustrations/update.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 assets/logos/arstechnica.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 assets/logos/bbc.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 assets/logos/cbsnews.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 assets/logos/esa.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 assets/logos/eurekalert.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 assets/logos/forbes.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 assets/logos/gizmodo.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 assets/logos/huffpost.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 assets/logos/livescience.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 assets/logos/nasa.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 assets/logos/physorg.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 assets/logos/placeholder.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 assets/logos/popsci.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 assets/logos/realclearscience.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 assets/logos/sciencedaily.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 assets/logos/sciencenews.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 assets/logos/spacecom.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 assets/logos/thescientist.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 assets/splash.png
Binary file added assets/topics/ai.jpg
Binary file added assets/topics/astronomy.jpg
Binary file added assets/topics/biology.jpg
Binary file added assets/topics/chemistry.jpg
Binary file added assets/topics/earth.jpg
Binary file added assets/topics/environment.jpg
Binary file added assets/topics/health.jpg
Binary file added assets/topics/physics.jpg
6 changes: 6 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};
23 changes: 23 additions & 0 deletions components/AdMobBannerComponent.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import React from 'react';

// import { AdMobBanner } from 'expo-ads-admob';

import { Layout } from '@ui-kitten/components';

export const AdMobBannerComponent = React.memo(({ size }) => {
console.log('Rendering AdMob Banner...');
return (
<Layout
style={{
alignItems: 'center',
justifyContent: 'center',
}}
>
{/* <AdMobBanner
bannerSize={size}
adUnitID="ca-app-pub-7459960426696151/9315497484"
servePersonalizedAds={true}
/> */}
</Layout>
);
});
82 changes: 82 additions & 0 deletions components/ArticleCardItem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import React from 'react';
import { Image } from 'react-native';

import { Layout, Text } from '@ui-kitten/components';

export const ArticleCardItem = ({
title,
website,
date,
imageUrl,
imagePath,
}) => {
return (
<Layout
style={{
marginHorizontal: 12,
marginTop: 12,
height: 'auto',
borderRadius: 10,
}}
>
{imageUrl === '' ? null : (
<Layout
style={{
borderTopRightRadius: 10,
borderTopLeftRadius: 10,
overflow: 'hidden',
}}
>
<Image
source={{ uri: imageUrl }}
style={{
height: 200,
width: '100%',
backgroundColor: 'rgba(143, 155, 179, 0.16)',
}}
/>
</Layout>
)}
<Layout style={{ padding: 16, borderRadius: 10 }}>
<Text style={{ marginBottom: 4, lineHeight: 20, marginBottom: 8 }}>
{title}
</Text>
<Layout
style={{
flexDirection: 'row',
alignItems: 'center',
}}
>
<Layout
style={{
borderColor: 'rgba(143, 155, 179, 0.16)',
borderWidth: 1,
borderRadius: 20,
overflow: 'hidden',
alignSelf: 'center',
marginRight: 8,
}}
>
<Image
style={{
height: 15,
width: 15,
resizeMode: 'contain',
}}
source={imagePath}
/>
</Layout>
<Text category="s2" appearance="hint">
{website}
</Text>
<Text category="s2" appearance="hint" style={{ marginHorizontal: 8 }}>
/
</Text>
<Text category="s2" appearance="hint">
{date}
</Text>
</Layout>
</Layout>
</Layout>
);
};
78 changes: 78 additions & 0 deletions components/ArticleListItem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
import React from 'react';
import { Image } from 'react-native';

import { Layout, Text } from '@ui-kitten/components';

export const ArticleListItem = ({
title,
website,
date,
imageUrl,
imagePath,
}) => {
return (
<Layout
style={{
marginHorizontal: 12,
marginTop: 12,
padding: 16,
flexDirection: 'row',
borderRadius: 10,
}}
>
<Layout style={{ flex: 1 }}>
<Text style={{ marginBottom: 8, lineHeight: 20 }}>{title}</Text>
<Layout style={{ flexDirection: 'row', alignItems: 'center' }}>
<Layout
style={{
borderColor: 'rgba(143, 155, 179, 0.16)',
borderWidth: 1,
borderRadius: 20,
overflow: 'hidden',
alignSelf: 'center',
marginRight: 8,
}}
>
<Image
style={{
height: 15,
width: 15,
resizeMode: 'contain',
}}
source={imagePath}
/>
</Layout>
<Text category="c1" appearance="hint">
{website}
</Text>
<Text category="c1" appearance="hint" style={{ marginHorizontal: 8 }}>
/
</Text>
<Text category="c1" appearance="hint">
{date}
</Text>
</Layout>
</Layout>
{imageUrl === '' ? null : (
<Layout
style={{
borderRadius: 10,
overflow: 'hidden',
marginLeft: 16,
height: 80,
width: 120,
}}
>
<Image
source={{ uri: imageUrl }}
style={{
height: '100%',
width: '100%',
backgroundColor: 'rgba(143, 155, 179, 0.16)',
}}
/>
</Layout>
)}
</Layout>
);
};
41 changes: 41 additions & 0 deletions components/ExploreCardItem.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import React from 'react';
import { Image } from 'react-native';

import { Text, Layout } from '@ui-kitten/components';

export const ExploreCardItem = ({ name, imagePath }) => {
return (
<Layout
style={{
alignItems: 'center',
justifyContent: 'center',
borderRadius: 10,
padding: 8,
aspectRatio: 1,
}}
>
<Layout
style={{
borderColor: 'rgba(143, 155, 179, 0.16)',
borderWidth: 1,
marginBottom: 8,
borderRadius: 20,
overflow: 'hidden',
alignSelf: 'center',
}}
>
<Image
style={{
height: 35,
width: 35,
resizeMode: 'contain',
}}
source={imagePath}
/>
</Layout>
<Text numberOfLines={1} category="c1" style={{ textAlign: 'center' }}>
{name}
</Text>
</Layout>
);
};
Loading

0 comments on commit c090563

Please sign in to comment.