Explorar el Código

Document handleKeyboardEvents

Guy Carmeli hace 5 años
padre
commit
53cad2b289
Se han modificado 2 ficheros con 8 adiciones y 2 borrados
  1. 2
    1
      docs/docs/styling.md
  2. 6
    1
      lib/src/interfaces/Options.ts

+ 2
- 1
docs/docs/styling.md Ver fichero

@@ -142,7 +142,8 @@ Navigation.mergeOptions(this.props.componentId, {
142 142
     }
143 143
   },
144 144
   overlay: {
145
-    interceptTouchOutside: true
145
+    interceptTouchOutside: true,
146
+    handleKeyboardEvents: true
146 147
   },
147 148
   preview: {
148 149
     reactTag: 0, // result from findNodeHandle(ref)

+ 6
- 1
lib/src/interfaces/Options.ts Ver fichero

@@ -599,11 +599,16 @@ export interface OptionsSideMenu {
599 599
   openGestureMode?: 'entireScreen' | 'bezel';
600 600
 }
601 601
 
602
-export interface OptionsOverlay {
602
+export interface OverlayOptions {
603 603
   /**
604 604
    * Capture touches outside of the Component View
605 605
    */
606 606
   interceptTouchOutside?: boolean;
607
+  /**
608
+   * Control wether this Overlay should handle Keyboard events.
609
+   * Set this to true if your Overlay contains a TextInput.
610
+   */
611
+  handleKeyboardEvents?: boolean;
607 612
 }
608 613
 
609 614
 export interface OptionsPreviewAction {