flash-notify

1.1.8 • Public • Published

Flash Notify

Easy and simple flash notify for React Native with less than 10KB...

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>
    );

}

Package Sidebar

Install

npm i flash-notify

Weekly Downloads

15

Version

1.1.8

License

MIT

Unpacked Size

5.92 kB

Total Files

4

Last publish

Collaborators

  • adonisdoda