From 2688315e38c2904f2e10248d013dd34763aa5f3e Mon Sep 17 00:00:00 2001 From: Huang Yu Date: Wed, 18 Nov 2015 15:34:43 -0800 Subject: [PATCH] add input callback to callback stack curerntly only allow one input per dialog --- DialogAndroid.js | 1 + 1 file changed, 1 insertion(+) diff --git a/DialogAndroid.js b/DialogAndroid.js index 76b9524..656cb35 100644 --- a/DialogAndroid.js +++ b/DialogAndroid.js @@ -48,6 +48,7 @@ class DialogAndroid { finalOptions.input = Object.assign({}, finalOptions.input); var inputCallback = finalOptions.input.callback || (x => console.log(x)); finalOptions.input.callback = true; + callbacks['input'] = inputCallback; } // Parse the result form multiple choice dialog