File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
import React , { Component } from 'react' ;
10
- import PropTypes from 'prop-types' ;
11
10
import {
12
11
StyleSheet ,
13
12
View ,
@@ -30,7 +29,6 @@ export default class Toast extends Component {
30
29
31
30
constructor ( props ) {
32
31
super ( props ) ;
33
-
34
32
this . state = {
35
33
isShow : false ,
36
34
text : '' ,
@@ -40,7 +38,6 @@ export default class Toast extends Component {
40
38
41
39
show ( text , duration , callback ) {
42
40
this . duration = typeof duration === 'number' ? duration : DURATION . LENGTH_SHORT ;
43
-
44
41
this . callback = callback ;
45
42
this . setState ( {
46
43
isShow : true ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-native-easy-toast" ,
3
- "version" : " 1.0.9 " ,
3
+ "version" : " 1.1.0 " ,
4
4
"description" : " A react native module to show toast like android, it works on iOS and Android." ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments