A lightweight feedback or tips, used to display content that does not interrupt user operations. Suitable for page transitions, data interaction and other scenes.


import React from 'react'
import styles from './styles'
import {View} from 'react-native';
import ArivaaButton from '../../button';
import Toast from '../index'

var view = function () {
    return (
        <View style={[styles.container]}>
            <View style={[styles.section]}>
                <ArivaaButton type="bordered"
                              onClick={Toast.success.bind(this, "Your account has been created successfully")}>
                    Success Toast
            <View style={[styles.section]}>
                <ArivaaButton type="bordered" onClick={, "Server Error")}>
                    Error Toast
module.exports = view


Published On October 14, 2020 5:57 PM

Last Updated October 14, 2020 5:57 PM