flash-notify
v1.1.8
Published
Notifications in a practical, simple and lightweight way to react native.
Downloads
16
Maintainers
Readme
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>
);
}