react-native-customize-toast

Fully customize toast both for andorid and iOS

Usage no npm install needed!

<script type="module">
  import reactNativeCustomizeToast from 'https://cdn.skypack.dev/react-native-customize-toast';
</script>

README

react-native-customize-toast

React Native customize toast both for android and iOS

Installation

npm install react-native-customize-toast --save

Properties

backgroundColor={"#4CAF50"}  
textColor={"#fff"}  
position={"top"} //default position={"bottom"} 

ScreenShots

Usages Example

import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View } from 'react-native';
import CustomToast from 'react-native-customize-toast';

export default class App extends Component {
  componentDidMount() {
    this.refs.appToast.show("Transaction is successfully done.");
  }
  render() {
    return (
      <View style={styles.container}>
        <CustomToast ref="appToast" position={"bottom"} backgroundColor={"#4CAF50"} textColor={"#fff"} />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#F5FCFF',
  },
});