2.0.0 • Published 4 years ago

react-native-smart-toast-alert v2.0.0

Weekly downloads
5
License
ISC
Repository
-
Last release
4 years ago

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

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago