react-onsenui: update Modal to match documentation (#25628)

https://onsen.io/v2/api/react/Modal.html

Added “lift” animation and changed show and hide methods.
This commit is contained in:
Karl von Randow
2018-05-10 06:26:58 +12:00
committed by Sheetal Nandi
parent 2b2d81c226
commit 208df7b962

View File

@@ -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<{