Skip to content

Commit 17d4545

Browse files
committed
Update camera functionality and history management
- Updated expo-camera to version 16.0.18 and added expo-dev-client. - Refactored CameraScreen to utilize CameraView and handle auto-capture functionality. - Implemented history management with save, load, clear, and delete functions in storageService. - Added HistoryScreen and HistoryChatScreen for viewing and interacting with saved images. - Enhanced ChatScreen with a "Listen" feature for image descriptions using TTS. - Improved UI components and styles for better user experience.
1 parent 2fc8a23 commit 17d4545

File tree

12 files changed

+554
-330
lines changed

12 files changed

+554
-330
lines changed

.expo/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
> Why do I have a folder named ".expo" in my project?
2+
3+
The ".expo" folder is created when an Expo project is started using "expo start" command.
4+
5+
> What do the files contain?
6+
7+
- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
8+
- "packager-info.json": contains port numbers and process PIDs that are used to serve the application to the mobile device/simulator.
9+
- "settings.json": contains the server configuration that is used to serve the application manifest.
10+
11+
> Should I commit the ".expo" folder?
12+
13+
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
14+
15+
Upon project creation, the ".expo" folder is already added to your ".gitignore" file.

.expo/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"hostType": "lan",
3+
"lanType": "ip",
4+
"dev": true,
5+
"minify": false,
6+
"urlRandomness": null,
7+
"https": false
8+
}

a.eyes/App.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ import React, { useState, useEffect } from 'react';
22
import { View, StyleSheet, StatusBar, SafeAreaView } from 'react-native';
33
import HomeScreen from './screens/HomeScreen';
44
import CameraScreen from './screens/CameraScreen';
5-
import ChatScreen from './screens/ChatScreen';
5+
import ChatScreen from './screens/HistoryScreens';
6+
import HistoryScreen from './screens/HistoryScreens';
7+
import HistoryChatScreen from './screens/HistoryChatScreen';
68

79
export default function App() {
810
const [screen, setScreen] = useState('Home');
@@ -35,6 +37,9 @@ export default function App() {
3537
{screen === 'Home' && <HomeScreen navigate={navigate} />}
3638
{screen === 'Camera' && <CameraScreen navigate={navigate} />}
3739
{screen === 'Chat' && <ChatScreen navigate={navigate} chatParams={chatParams} />}
40+
{screen === 'History' && <HistoryScreen navigate={navigate} />}
41+
{screen === 'HistoryChat' && <HistoryChatScreen navigate={navigate} route={{ params: chatParams }} />}
42+
{screen === 'LiveChat' && <LiveChatScreen navigate={navigate} />}
3843
</SafeAreaView>
3944
);
4045
}

a.eyes/package-lock.json

Lines changed: 147 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

a.eyes/package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414
"@react-navigation/native-stack": "^6.9.17",
1515
"axios": "^1.6.2",
1616
"expo": "~52.0.0",
17-
"expo-camera": "~16.0.17",
17+
"expo-camera": "~16.0.18",
18+
"expo-dev-client": "~5.0.20",
1819
"expo-file-system": "~18.0.11",
1920
"expo-image-manipulator": "~13.0.6",
21+
"expo-image-picker": "~16.0.6",
2022
"expo-speech": "~13.0.1",
2123
"expo-status-bar": "~2.0.1",
2224
"react": "18.3.1",
2325
"react-native": "0.76.7",
2426
"react-native-safe-area-context": "4.12.0",
25-
"react-native-screens": "~4.4.0",
26-
"expo-image-picker": "~16.0.6"
27+
"react-native-screens": "~4.4.0"
2728
},
2829
"devDependencies": {
2930
"@babel/core": "^7.20.0"

0 commit comments

Comments
 (0)