react-native-smart-toast-alert

2.0.0 • Public • Published

Thank you for installing

image example

Installation

npm i react-native-smart-toast-alert

Usage

import React from 'react';
import {View, Text, StatusBar} from 'react-native';
import Toast from 'react-native-smart-toast-alert'

export default Mycomponent = () => {
 
const showToast = () => {
  Toast.showToast('Great ! Toast is working...', '#228B22')
}

return (
    <View style={{flex: 1}}>
    <Toast /> { /*Add this line */}
    <StatusBar barStyle="light-content" />
      <Text onPress={() => showToast()}> CLICK ME </Text>
    </View>
  );
};

Props

call this method when you need to show the toast in your app

Toast.showToast(YOUR_TOAST_MESSAGE, COLOR)

Dependents (0)

Package Sidebar

Install

npm i react-native-smart-toast-alert

Weekly Downloads

0

Version

2.0.0

License

ISC

Unpacked Size

14.9 kB

Total Files

5

Last publish

Collaborators

  • uday8373