Commit ccb3145a authored by Andrea Ascari's avatar Andrea Ascari Committed by zooble

Made callback for isPickerShow optional (#296)

parent 358d080a
......@@ -266,5 +266,5 @@ export default class Picker {
*
* @memberof Picker
*/
static isPickerShow(): boolean
static isPickerShow(fn?: (err: any, message: any) => void): boolean
}
......@@ -91,7 +91,7 @@ export default {
else if(ios){
returnValue = !err;
}
fn(returnValue);
fn && fn(returnValue);
});
}
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment