Check Flipper version when handling deeplinks

Summary: Check if Flipper is up to date before handling deeplink.

Reviewed By: nikoant

Differential Revision: D29846236

fbshipit-source-id: 011d05958346c3d18c76cf0ae63c3cb087f5933c
This commit is contained in:
Michel Weststrate
2021-08-10 13:23:05 -07:00
committed by Facebook GitHub Bot
parent b757bff9f6
commit 4b892e7373
4 changed files with 84 additions and 37 deletions

View File

@@ -79,7 +79,7 @@ export const Dialog = {
message,
...rest
}: {
message: string | React.ReactElement;
message: React.ReactNode;
} & BaseDialogOptions): DialogResult<true> {
return Dialog.show<true>({
...rest,
@@ -94,7 +94,7 @@ export const Dialog = {
onConfirm,
...rest
}: BaseDialogOptions & {
message: string | React.ReactElement;
message: React.ReactNode;
defaultValue?: string;
onConfirm?: (value: string) => Promise<string>;
}): DialogResult<string> {
@@ -123,7 +123,7 @@ export const Dialog = {
width,
}: {
title?: string;
message: string | React.ReactElement;
message: React.ReactNode;
width?: number;
}) {
let cancel: () => void;