flash-notify

    1.1.2 • Public • Published

    Flash Notify

    Easy and simple flash notify for React Native...

    Installation

    Use the package manager yarn to install.

    yarn add flash-notify

    Usage

    import React from "react";
    import OtherComponent from "./src";
    import FlashComponent from 'flash-notify'
    
    export default App = () => {
    
        return (
          <View>
            {/*Declare in your main APP*/}
            <FlashComponent />
            <OtherComponent/>
          </View>
        );
    
    }
    import React from 'react';
    import { View, Text, TouchableOpacity } from 'react-native';
    import { showFlash } from 'flash-notify'
    
    export default OtherComponent = () => {
    
        return (
            <View>
                <TouchableOpacity onPress={() =>
                 showFlash({ type: 'NEUTRAL', desc: 'Created by Adonis <3', title: 'Flash Message' }) 
                 }>
                    <Text>Desenvolvendo um componente para teste</Text>
                </TouchableOpacity>
            </View>
        );
    
    }

    Install

    npm i flash-notify

    DownloadsWeekly Downloads

    1

    Version

    1.1.2

    License

    MIT

    Unpacked Size

    5.6 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar