I've got a nativescript app and I'm using IQKeyboardManager with default settings.
I see there in an option to dismiss the keyboard on tap outside a text field with a typescript example for toggling it on and off:
private iqKeyboard: IQKeyboardManager;
public keepKeyboardOpenOnTouchOutside: boolean = true;
toggleKeepKeyboardOpen(): void {
this.iqKeyboard.shouldResignOnTouchOutside = !this.iqKeyboard.shouldResignOnTouchOutside;
}
But I don't understand how to go about it in normal javascript.
I want to set the keepKeyboardOpenOnTouchOutside variable with something like:
exports.loaded = function(args){
keepKeyboardOpenOnTouchOutside = false;
}
but I don't understand how I'm supposed to access the instance variable properly.