This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
// Defines the three kinds of message that are displayed | |
export enum ToastType { | |
Info = "INFO", | |
Error = "ERROR", | |
Success = "SUCCESS", | |
} | |
// Defines the parameters required to display the toast |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from "react"; | |
import { StyleSheet, Text, View } from "react-native"; | |
import { ToastType } from "./ToastProvider"; | |
import { useToast } from "../hooks/useToast"; | |
export const Toast: React.FC = () => { | |
// Toast is using hook to retrieve config and to hide itself | |
const { toastConfig, hideToast } = useToast(); | |
React.useEffect(() => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AWSTemplateFormatVersion: "2010-09-09" | |
Description: This template creates resources for Flowise application | |
Parameters: | |
Stage: | |
Description: Prefix of resource names | |
Type: String | |
Default: flowise |