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 77 */
88
99import React , { Component } from 'react' ;
10- import PropTypes from 'prop-types' ;
1110import {
1211 StyleSheet ,
1312 View ,
@@ -30,7 +29,6 @@ export default class Toast extends Component {
3029
3130 constructor ( props ) {
3231 super ( props ) ;
33-
3432 this . state = {
3533 isShow : false ,
3634 text : '' ,
@@ -40,7 +38,6 @@ export default class Toast extends Component {
4038
4139 show ( text , duration , callback ) {
4240 this . duration = typeof duration === 'number' ? duration : DURATION . LENGTH_SHORT ;
43-
4441 this . callback = callback ;
4542 this . setState ( {
4643 isShow : true ,
Original file line number Diff line number Diff line change 11{
22 "name" : " react-native-easy-toast" ,
3- "version" : " 1.0.9 " ,
3+ "version" : " 1.1.0 " ,
44 "description" : " A react native module to show toast like android, it works on iOS and Android." ,
55 "main" : " index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments