import React from 'react'; import {Image, StyleSheet, TextInput, View} from 'react-native'; import {useStore} from 'react-redux'; import { MessageInputProps, useMessageInputContext, } from 'stream-chat-react-native'; import {ChatInputSubmit} from '../messages'; import {RootState} from '../../store/rootReducer'; import { LocalAttachmentType, LocalChannelType, LocalCommandType, LocalEventType, LocalMessageType, LocalReactionType, LocalUserType, } from '../../types'; const ChatInput: React.FC< MessageInputProps< LocalAttachmentType, LocalChannelType, LocalCommandType, LocalEventType, LocalMessageType, LocalReactionType, LocalUserType > > = () => { const state: RootState = useStore().getState(); const avatar = state.user.avatar; const {sendMessage, setText, text} = useMessageInputContext(); return ( ); }; const styles = StyleSheet.create({ container: { alignItems: 'center', width: '100%', }, textContainer: { width: '95%', flexDirection: 'row', backgroundColor: '#e8e8e8', alignItems: 'center', justifyContent: 'space-between', margin: '3%', borderRadius: 25, }, text: { flex: 1, padding: '1%', marginHorizontal: '1%', }, avatar: { height: 35, width: 35, borderRadius: 30, marginRight: 10, marginLeft: '3%', marginVertical: '2%', alignSelf: 'flex-end', }, whiteBackround: { backgroundColor: '#fff', }, }); export default ChatInput;