From 208df7b962daaf8e9f17ddb8f7b60fe3a7f35213 Mon Sep 17 00:00:00 2001 From: Karl von Randow Date: Thu, 10 May 2018 06:26:58 +1200 Subject: [PATCH] react-onsenui: update Modal to match documentation (#25628) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://onsen.io/v2/api/react/Modal.html Added “lift” animation and changed show and hide methods. --- types/react-onsenui/index.d.ts | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/types/react-onsenui/index.d.ts b/types/react-onsenui/index.d.ts index 00437e099b..91055d25b4 100644 --- a/types/react-onsenui/index.d.ts +++ b/types/react-onsenui/index.d.ts @@ -200,11 +200,14 @@ export class Dialog extends Component<{ }, any> {} export class Modal extends Component<{ - animation?: "fade" | "none", - animationOptions?: AnimationOptions - onShow?(): void, - onHide?(): void, - isOpen?: boolean + animation?: "fade" | "lift" | "none", + animationOptions?: AnimationOptions, + onPreShow?(): void, + onPostShow?(): void, + onPreHide?(): void, + onPostHide?(): void, + isOpen?: boolean, + onDeviceBackButton?(): void, }, any> {} export class Popover extends Component<{