From 701315011b9bdccfe5796fb98bfb6eb4ed39691d Mon Sep 17 00:00:00 2001 From: gibbyb Date: Tue, 15 Oct 2024 16:58:01 -0500 Subject: [PATCH] Almost done with rewrite --- components/chat/AccessoryBar.tsx | 52 +++++++++++ components/chat/CustomActions.tsx | 109 ++++++++++++++++++++++++ components/chat/CustomView.tsx | 0 components/chat/NavBar.tsx | 0 components/chat/data/earlierMessages.js | 0 components/chat/data/messages.js | 0 components/chat/mediaUtils.ts | 65 ++++++++++++++ constants/Colors.ts | 29 ++++--- package.json | 2 + pnpm-lock.yaml | 34 ++++++++ 10 files changed, 277 insertions(+), 14 deletions(-) create mode 100644 components/chat/AccessoryBar.tsx create mode 100644 components/chat/CustomActions.tsx create mode 100644 components/chat/CustomView.tsx create mode 100644 components/chat/NavBar.tsx create mode 100644 components/chat/data/earlierMessages.js create mode 100644 components/chat/data/messages.js create mode 100644 components/chat/mediaUtils.ts diff --git a/components/chat/AccessoryBar.tsx b/components/chat/AccessoryBar.tsx new file mode 100644 index 0000000..04e04a6 --- /dev/null +++ b/components/chat/AccessoryBar.tsx @@ -0,0 +1,52 @@ +import { MaterialIcons } from '@expo/vector-icons'; +import React from 'react'; +import { StyleSheet, TouchableOpacity } from 'react-native'; +import { ThemedView } from '@/components/theme/Theme'; +import { + getLocationAsync, + pickImageAsync, + takePictureAsync, +} from '@/components/chat/mediaUtils'; + +export default class AccessoryBar extends React.Component { + render () { + const { onSend, isTyping } = this.props; + + return ( + +