import React, {Component} from 'react';
import {
SafeAreaView,
Text,
TouchableOpacity,
View,
ActivityIndicator,
Image,
Alert,
Platform,
Dimensions,
Animated,
Modal,
FlatList
} from 'react-native';
import * as axios from 'axios';
import {Thumbnail, Fab, Icon, Card, CardItem, Body} from 'native-base';
import {GiftedChat, SystemMessage} from 'react-native-gifted-chat';
import SocketIOClient from 'socket.io-client';
import {API_BASE_URL} from '../config';
import {TASK_GROUP_TYPES} from '../constants';
import {
SAVE_TASK_PATH_API,
UPDATE_USER_TASK_GROUP_API_PATH,
GET_OBJECTIVE_API_PATH,
CHAT_SOCKET_URL
} from '../endpoints';
import styles from '../stylesheets/chatViewStyles';
import Header from '../components/Header';
import {getMessages} from '../utils/common';
import ReadMore from 'react-native-read-more-text';
//import Card from "../components/Card";
import { Client } from 'bugsnag-react-native';
import {BUGSNAG_KEY} from "../config";
const bugsnag = new Client(BUGSNAG_KEY);