Skip to content

Commit

Permalink
Revert "Expo camera (#13)" (#18)
Browse files Browse the repository at this point in the history
This reverts commit e283866.
  • Loading branch information
DanielCufino authored Feb 3, 2024
1 parent e283866 commit 99e33e9
Show file tree
Hide file tree
Showing 17 changed files with 181 additions and 480 deletions.
38 changes: 14 additions & 24 deletions hmns-app/client/app/(tabs)/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,33 @@ import { StyleSheet } from "react-native";
import EditScreenInfo from "../../components/EditScreenInfo";
import { Text, View } from "../../components/Themed";

export default function TabOneScreen() {
export default function TabOneScreen () {
return (
<View style={styles.container}>
<View style={styles.header}>
<Text style={styles.title}>Tab One</Text>
<View
style={styles.separator}
lightColor='#eee'
darkColor='rgba(255,255,255,0.1)'
/>
<EditScreenInfo path='app/(tabs)/index.tsx' />
</View>
<Text style={styles.title}>Tab One</Text>
<View
style={styles.separator}
lightColor='#eee'
darkColor='rgba(255,255,255,0.1)'
/>
<EditScreenInfo path='app/(tabs)/index.tsx' />
</View>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
},
header: {
alignItems: "center",
justifyContent: "center",
// Adjust the flex value or height as needed
flex: 0.45,
flex: 1,
justifyContent: "center"
},
separator: {
height: 1,
marginVertical: 30,
width: "80%",
width: "80%"
},
title: {
fontSize: 20,
fontWeight: "bold",
},
camera: {
flex: 1, // Take up all available space
},
fontWeight: "bold"
}
});

22 changes: 18 additions & 4 deletions hmns-app/client/app/(tabs)/two.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,31 @@
import { StyleSheet } from "react-native";
import CameraComponent from "../../components/CameraComponent";
import { View } from "../../components/Themed";

export default function TabTwoScreen() {
import EditScreenInfo from "../../components/EditScreenInfo";
import { Text, View } from "../../components/Themed";

export default function TabTwoScreen () {
return (
<View style={styles.container}>
<CameraComponent/>
<Text style={styles.title}>Tab Two</Text>
<View style={styles.separator} lightColor="#eee" darkColor="rgba(255,255,255,0.1)" />
<EditScreenInfo path="app/(tabs)/two.tsx" />
</View>
);
}

const styles = StyleSheet.create({
container: {
alignItems: "center",
flex: 1,
justifyContent: "center"
},
separator: {
height: 1,
marginVertical: 30,
width: "80%"
},
title: {
fontSize: 20,
fontWeight: "bold"
}
});
Binary file removed hmns-app/client/assets/images/gallery.jpg
Binary file not shown.
16 changes: 8 additions & 8 deletions hmns-app/client/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = function (api) {
api.cache(true);
return {
presets: ["babel-preset-expo"],
plugins: [
// Required for expo-router
"expo-router/babel",
],
};
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
// Required for expo-router
'expo-router/babel',
],
};
};
Binary file not shown.
264 changes: 0 additions & 264 deletions hmns-app/client/components/CameraComponent.tsx

This file was deleted.

Loading

0 comments on commit 99e33e9

Please sign in to comment.