Skip to content

Commit

Permalink
fix(#15): Fix ios call
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Nov 6, 2016
1 parent 426976a commit 9cf55f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion toast.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function makeText(text, duration) {
throw new Error("The `text` parameter is missing.");
}
var d = (typeof (duration) === "string" && duration[0] === "l") ? 3.5 : 2;
return Toast(text);
return Toast.alloc().initWithTextDelayDuration(text,0,d);
}

exports.makeText = makeText;

0 comments on commit 9cf55f5

Please sign in to comment.