diff --git a/LICENSE b/LICENSE
index b3bc1d5..dfe091a 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2020 Eric Wang
+Copyright (c) 2020 FRC Rebels 2638
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/app.json b/app.json
index 5a48bb7..546c847 100644
--- a/app.json
+++ b/app.json
@@ -1,7 +1,7 @@
{
"expo": {
- "name": "Parts App",
- "slug": "PartsApp",
+ "name": "FRC Parts and Tools",
+ "slug": "FRCPartsAndTools",
"privacy": "public",
"sdkVersion": "36.0.0",
"platforms": [
@@ -9,7 +9,7 @@
"android",
"web"
],
- "version": "1.0.1",
+ "version": "1.0.2",
"orientation": "default",
"icon": "./assets/images/icon.png",
"splash": {
diff --git a/screens/AboutScreen.js b/screens/AboutScreen.js
index 9c9a89d..a5e3710 100644
--- a/screens/AboutScreen.js
+++ b/screens/AboutScreen.js
@@ -8,7 +8,8 @@ import {
ScrollView,
Linking,
TouchableOpacity,
- StatusBar
+ StatusBar,
+ SafeAreaView
} from 'react-native';
import TabBarIcon from '../components/TabBarIcon.js';
@@ -18,85 +19,87 @@ export default class AboutScreen extends React.Component {
render() {
return (
-
-
-
- this.props.navigation.goBack()}>
-
-
- BACK
-
-
-
-
-
- About
-
-
-
-
-
-
-
-
-
+
+
+
+
+ this.props.navigation.goBack()}>
+
+
+ BACK
+
+
+
-
+
+ About
+
-
-
-
-
- Linking.openURL("https://www.gnsrobotics.com/")} name = "Website" iconName = 'link'/>
-
+
-
-
-
-
- {`App Development Team 2020\nReid Fleishman\nEric Yachbes\nKevin Wang\nEric Wang (for a bit)\n\nUI Design and App Concept by\nReid Fleishman\n\nApp Programmed by\nEric Yachbes\nKevin Wang`}
-
-
-
-
- {`Special Thanks To\nAndrew Dea for helping organize the whole thing\n\nCole Kniesly and especially Mrs. Zinn for proofreading the descriptions (like "Scratch All"). You are truly Zinntastic!\n\nOur mentors John Motchkavitz, Mr. Corrigan, Squeegee, the aforementioned Mrs. Zinn, and our other mentors.`}
-
-
-
- {`Much of the content in this app was compiled by the Freshman Class of 2020 (HS Class of 2023) as part of an activity. So, we would like to thank the following students who contributed to this app:\n\nIsaac Ahn\nAntranig Baghdassarian\nOskar Bohaczyk\nElia Botros\nIssac Chan\nSooah Kwak\nThomas Lo\nLeo Lui`}
-
-
-
+
+
-
- © 2020 Rebel Robotics
-
-
+
-
-
+
+
+
+
+ Linking.openURL("https://www.gnsrobotics.com/")} name = "Website" iconName = 'link'/>
+
+
+
+
+
+
+ {`App Development Team 2020\nReid Fleishman\nEric Yachbes\nKevin Wang\nEric Wang (for a bit)\n\nUI Design and App Concept by\nReid Fleishman\n\nApp Programmed by\nEric Yachbes\nKevin Wang`}
+
+
+
+
+ {`Special Thanks To\nAndrew Dea for helping organize the whole thing\n\nCole Kniesly and especially Mrs. Zinn for proofreading the descriptions (like "Scratch All"). You are truly Zinntastic!\n\nOur mentors John Motchkavitz, Mr. Corrigan, Squeegee, the aforementioned Mrs. Zinn, and our other mentors.`}
+
+
+
+ {`Much of the content in this app was compiled by the Freshman Class of 2020 (HS Class of 2023) as part of an activity. So, we would like to thank the following students who contributed to this app:\n\nIsaac Ahn\nAntranig Baghdassarian\nOskar Bohaczyk\nElia Botros\nIssac Chan\nSooah Kwak\nThomas Lo\nLeo Lui`}
+
+
+
+
+
+
+
+
+ © 2020 Rebel Robotics
+
+
+
+
+
+
);
}
diff --git a/screens/FavoritesScreen.js b/screens/FavoritesScreen.js
index 4cbd855..8be02c0 100644
--- a/screens/FavoritesScreen.js
+++ b/screens/FavoritesScreen.js
@@ -5,24 +5,27 @@ import {
Text,
View,
Dimensions,
- StatusBar
+ StatusBar,
+ SafeAreaView
} from 'react-native';
export default class FavoritesScreen extends React.Component {
render() {
return (
-
-
- Favorites
-
-
-
-
- Coming Soon!
+
+
+
+ Favorites
-
-
+
+
+
+ Coming Soon!
+
+
+
+
);
}
diff --git a/screens/ItemScreen.js b/screens/ItemScreen.js
index b4ac7c0..6915e10 100644
--- a/screens/ItemScreen.js
+++ b/screens/ItemScreen.js
@@ -8,7 +8,8 @@ import {
ScrollView,
Linking,
TouchableOpacity,
- StatusBar
+ StatusBar,
+ SafeAreaView
} from 'react-native';
import TabBarIcon from '../components/TabBarIcon.js';
@@ -22,50 +23,52 @@ export default class ItemScreen extends React.Component {
return (
-
-
+
+
+
-
- this.props.navigation.goBack()}>
-
-
- BACK
-
-
-
+
+ this.props.navigation.goBack()}>
+
+
+ BACK
+
+
+
-
- {item.name}
-
+
+ {item.name}
+
-
+
-
+
-
-
-
-
+
+
+
+
-
-
-
-
-
- {item.vendor ? Linking.openURL(item.link)} name={item.vendor} iconName = 'shopping-cart'/> : }
-
-
+
+
+
+
+
+ {item.vendor ? Linking.openURL(item.link)} name={item.vendor} iconName = 'shopping-cart'/> : }
+
+
-
- {item.description}
-
-
+
+ {item.description}
+
+
+
);
}
diff --git a/screens/MoreScreen.js b/screens/MoreScreen.js
index e83cd9b..e6561b9 100644
--- a/screens/MoreScreen.js
+++ b/screens/MoreScreen.js
@@ -6,7 +6,8 @@ import {
View,
Linking,
StatusBar,
- Alert
+ Alert,
+ SafeAreaView
} from 'react-native';
import IconButton from '../components/IconButton.js';
@@ -15,7 +16,8 @@ export default class MoreScreen extends React.Component {
render() {
return (
-
+
+
More
@@ -30,6 +32,7 @@ export default class MoreScreen extends React.Component {
iconName='pencil-square'
/>
+
);
}
@@ -55,8 +58,10 @@ const styles = StyleSheet.create({
textAlign: "center"
},
iconsContainer: {
+ flex: 1,
flexDirection: "row",
flexWrap: "wrap",
- alignItems: "stretch"
+ alignItems: "stretch",
+ backgroundColor: "#fff"
}
});
diff --git a/util/isIphoneX.js b/util/isIphoneX.js
new file mode 100644
index 0000000..59355d7
--- /dev/null
+++ b/util/isIphoneX.js
@@ -0,0 +1,15 @@
+import { Dimensions, Platform } from 'react-native';
+
+export function isIphoneX() {
+ const dim = Dimensions.get('window');
+
+ return Platform.OS === 'ios' && (isIPhoneXSize(dim) || isIPhoneXrSize(dim));
+}
+
+export function isIPhoneXSize(dim) {
+ return dim.height == 812 || dim.width == 812;
+}
+
+export function isIPhoneXrSize(dim) {
+ return dim.height == 896 || dim.width == 896;
+}
\ No newline at end of file