aboutsummaryrefslogtreecommitdiff
path: root/src/components/messages
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-23 18:14:52 -0400
committerGitHub <noreply@github.com>2021-04-23 18:14:52 -0400
commit5f3bfdc0f6e1b24c2f024b308b66cbd1ed2b12d6 (patch)
treec2f1f74eb0d352b388250a5d5f66e0e50df9f26f /src/components/messages
parent5e247c2045fa53616008aae73f0192ffed048709 (diff)
parent7d2414c756a2edb9393161d439ce2deb3e96b5c4 (diff)
Merge pull request #387 from IvanIFChen/hotfix-toggle-off-gif
[HOTFIX] Toggled off gif
Diffstat (limited to 'src/components/messages')
-rw-r--r--src/components/messages/ChatInput.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/messages/ChatInput.tsx b/src/components/messages/ChatInput.tsx
index bde5fc12..a4ed675b 100644
--- a/src/components/messages/ChatInput.tsx
+++ b/src/components/messages/ChatInput.tsx
@@ -1,6 +1,5 @@
import React from 'react';
import {Image, StyleSheet, View} from 'react-native';
-import {TouchableOpacity} from 'react-native-gesture-handler';
import {useStore} from 'react-redux';
import {
AutoCompleteInput,
@@ -33,7 +32,7 @@ const ChatInput: React.FC<
> = () => {
const state: RootState = useStore().getState();
const avatar = state.user.avatar;
- const {sendMessage, text, setText} = useMessageInputContext();
+ const {sendMessage, text} = useMessageInputContext();
// const {
// setSelectedImages,
// selectedImages,
@@ -84,12 +83,12 @@ const ChatInput: React.FC<
source={require('../../assets/images/camera.png')}
/>
</TouchableOpacity> */}
- <TouchableOpacity onPress={() => setText('/')}>
+ {/* <TouchableOpacity onPress={() => setText('/')}>
<Image
style={{width: normalize(23), height: normalize(23)}}
source={require('../../assets/images/gif.png')}
/>
- </TouchableOpacity>
+ </TouchableOpacity> */}
<ChatInputSubmit onPress={sendMessage} outlined={text.length === 0} />
</View>
</View>
@@ -135,7 +134,8 @@ const styles = StyleSheet.create({
justifyContent: 'space-evenly',
alignItems: 'center',
marginRight: 10,
- width: 100,
+ width: 50,
+ // width: 100,
alignSelf: 'flex-end',
},
});