Skip to content

Commit

Permalink
chore: tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Apr 11, 2024
1 parent aa06bc3 commit 6a0c7d4
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/components/popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {StyleSheet, View, Modal, Dimensions} from 'react-native';
import type {ImageStyle, ModalProps, ViewStyle, TextStyle} from 'react-native';
import {getAvailableApps, checkNotSupportedApps} from '../../utils';
import {generatePrefixes, generateTitles} from '../../constants';
import type {MapId, SharedOptions} from '../../type';
import type {MapId, MapLinkOptions, SharedOptions} from '../../type';
import PopupFooter from './PopupFooter';
import PopupHeader from './PopupHeader';
import PopupBody from './PopupBody';
Expand All @@ -13,8 +13,8 @@ export interface PopupProps extends SharedOptions {
isVisible: boolean;
setIsVisible: (isVisible: boolean) => void;
showHeader?: boolean;
customHeader?: JSX.Element;
customFooter?: JSX.Element;
customHeader?: React.ReactNode;
customFooter?: React.ReactNode;
onAppPressed: (app: MapId) => void;
onCancelPressed: () => void;
style?: {
Expand All @@ -31,17 +31,7 @@ export interface PopupProps extends SharedOptions {
activityIndicatorContainer?: ViewStyle;
};
modalProps?: ModalProps;
options: {
dialogTitle?: string;
dialogMessage?: string;
cancelText?: string;
appTitles?: Record<string, string>;
alwaysIncludeGoogle?: boolean;
naverCallerName?: string;
latitude: number;
longitude: number;
title?: string;
};
options: MapLinkOptions;
}

const SCREEN_HEIGHT = Dimensions.get('screen').height;
Expand Down

0 comments on commit 6a0c7d4

Please sign in to comment.