react-native-toast-message 2.1.7 → 2.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -9,6 +9,12 @@ Headers are one of:
9
9
 
10
10
  - `Added`, `Changed`, `Removed`, `Fixed` or `Breaking`.
11
11
 
12
+ ## [2.1.8]
13
+
14
+ ### Fixed
15
+
16
+ - Type update: add 'success', 'error' and 'info' to ToastType (#510)(https://github.com/calintamas/react-native-toast-message/pull/510)
17
+
12
18
  ## [2.1.7]
13
19
 
14
20
  ### Fixed
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { StyleProp, TextProps, TextStyle, TouchableOpacityProps, ViewProps, ViewStyle } from 'react-native';
3
3
  export declare type ReactChildren = React.ReactNode;
4
- export declare type ToastType = string;
4
+ export declare type ToastType = 'success' | 'error' | 'info' | (string & {});
5
5
  export declare type ToastPosition = 'top' | 'bottom';
6
6
  export declare type ToastOptions = {
7
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-toast-message",
3
- "version": "2.1.7",
3
+ "version": "2.1.8",
4
4
  "description": "Toast message component for React Native",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",