
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@geeek/expo-react-native-toastify
Advanced tools
expo-react-native-toastifyallows you to add notifications to your expo react-native app (ios, android, web) with ease.
expo-react-native-toastify allows you to add notifications to your expo react-native app (ios, android, web) with ease.
The earlier package was not working on expo web due module transpiling issue for expo web and various babel files which were present in the package.
$ npm install expo-react-native-toastify
import React from 'react';
import { StyleSheet, View, TouchableOpacity, Text } from 'react-native';
import ToastManager, { Toast } from 'expo-react-native-toastify';
import Another from './Another';
const App = () => {
  const showToasts = () => {
    Toast.success('Promised is resolved');
  };
  return (
    <View style={styles.container}>
      <ToastManager />
      <Another />
      <TouchableOpacity
        onPress={showToasts}
        style={{
          backgroundColor: 'white',
          borderColor: 'green',
          borderWidth: 1,
          padding: 10,
        }}>
        <Text>SHOW SOME AWESOMENESS!</Text>
      </TouchableOpacity>
    </View>
  );
};
const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});
export default App;
import React from 'react';
import { StyleSheet, View, TouchableOpacity, Text } from 'react-native';
import { Toast } from 'toastify-react-native';
Another = () => (
  <View style={styles.container}>
    <TouchableOpacity
      onPress={() => Toast.info('Lorem ipsum info', 'bottom')}
      style={styles.buttonStyle}>
      <Text>SHOW SOME AWESOMENESS!</Text>
    </TouchableOpacity>
  </View>
);
const styles = StyleSheet.create({
  container: {
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
  buttonStyle: {
    marginTop: 10,
    backgroundColor: 'white',
    borderColor: 'green',
    borderWidth: 2,
    padding: 10,
  },
});
export default Another;
For a more complex example take a look at the /example directory.
| Name | Type | Default | Description | 
|---|---|---|---|
| width | number | 256 | Width of toast | 
| height | number | 68 | Height of the toast | 
| style | any | null | Style applied to the toast | 
| position | top, center or bottom | top | Position of toast | 
| positionValue | number | 50 | position value of toast | 
| duration | number | 3000 | The display time of toast. | 
| animationStyle | upInUpOut, rightInOut or zoomInOut | upInUpOut | The animation style of toast | 
| animationIn | string or object | 'slideInRight' | Toast show animation | 
| animationOut | string or object | 'slideOutLeft' | Toast hide animation | 
| animationInTiming | number | 300 | Timing for the Toast show animation (in ms) | 
| animationOutTiming | number | 300 | Timing for the toast hide animation (in ms) | 
| backdropTransitionInTiming | number | 300 | The backdrop show timing (in ms) | 
| backdropTransitionOutTiming | number | 300 | The backdrop hide timing (in ms) | 
| hasBackdrop | bool | false | Render the backdrop | 
| backdropColor | string | 'black' | The backdrop background color | 
| backdropOpacity | number | 0.2 | The backdrop opacity when the toast is visible | 
|
Take a look at react-native-animatable to see the dozens of animations available out-of-the-box.
This package is inspired by (toastify-react-native)[https://www.npmjs.com/package/toastify-react-native].
expo-react-native-toastify is [MIT licensed], modded by geeek, and originally built by :heart: by Zahid Ali.
FAQs
expo-react-native-toastifyallows you to add notifications to your expo react-native app (ios, android, web) with ease.
The npm package @geeek/expo-react-native-toastify receives a total of 0 weekly downloads. As such, @geeek/expo-react-native-toastify popularity was classified as not popular.
We found that @geeek/expo-react-native-toastify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.