/**
 * Toast
 */
import React, { useState, useEffect } from 'react';
import { postRequest } from '@/netWork/index';
import { StyleSheet, Text, View } from 'react-native';
import { Modal, ModalContent } from 'react-native-modals';

export const useToast = (props: any) => {
	const [isShowingToast, setIsShowingToast] = useState(false);
	return (
		<View>
			<Modal
				animationType="slide"
				transparent={true}
				visible={isShowingToast}
				onRequestClose={() => {
					setIsShowingToast(false);
				}}>
				<ModalContent>
					<Text>haha</Text>
				</ModalContent>
			</Modal>
		</View>
	);
};
const styles = StyleSheet.create({
	groupCard: {
		flex: 1,
		paddingLeft: 16,
		paddingRight: 16,
	},
	groupList: {
		backgroundColor: '#fff',
		borderRadius: 10,
	},
	groupItem: {
		paddingTop: 17,
		paddingBottom: 17,
		paddingLeft: 20,
		paddingRight: 20,
		flexDirection: 'row',
	},
	title: {
		marginTop: 25,
		marginBottom: 8,
	},
	groupIcon: {
		width: 30,
		height: 30,
		marginRight: 20,
	},
	groupName: {
		height: 30,
		lineHeight: 30,
	},
});
