title: Customizing the IQKeyboardManager with Nativescript + javascript
body: <p>I've got a nativescript app and I'm using IQKeyboardManager with default settings.</p>
  
  <p>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:</p>
  
  <pre><code>  private iqKeyboard: IQKeyboardManager;
    public keepKeyboardOpenOnTouchOutside: boolean = true;
  
    toggleKeepKeyboardOpen(): void {
      this.iqKeyboard.shouldResignOnTouchOutside = !this.iqKeyboard.shouldResignOnTouchOutside;
    }
  </code></pre>
  
  <p>But I don't understand how to go about it in normal javascript.</p>
  
  <p>I want to set the keepKeyboardOpenOnTouchOutside variable with something like:</p>
  
  <pre><code>exports.loaded = function(args){
     keepKeyboardOpenOnTouchOutside = false;
  }
  </code></pre>
  
  <p>but I don't understand how I'm supposed to access the instance variable properly.</p>