react-native-app-update-helper
Version:
This packages provides a customizable update overlay.
46 lines • 2.06 kB
TypeScript
import type { ImageSourcePropType } from 'react-native';
interface AutoUpdateOverlayProps {
currentVersion: string;
iosStoreLink: string;
androidStoreLink: string;
primaryColor: string;
backgroundColor: string;
icon: ImageSourcePropType;
mainTitle: string;
description: string;
buttonTitle: string;
titleFontFamily: string;
descriptionFontFamily: string;
buttonTitleFontFamily: string;
titleFontSize: number;
descriptionFontSize: number;
buttonTitleFontSize: number;
isWhatsNewRequired: boolean;
whatsNewDescription: string;
}
interface ManualUpdateOverlayProps {
updateAvailable: any;
iosStoreLink: string;
androidStoreLink: string;
currentVersion: string;
icon: ImageSourcePropType;
mainTitle: string;
description: string;
buttonTitle: string;
primaryColor: string;
backgroundColor: string;
titleFontFamily: string;
descriptionFontFamily: string;
buttonTitleFontFamily: string;
titleFontSize: number;
descriptionFontSize: number;
buttonTitleFontSize: number;
isMandatoryUpdate: boolean;
whatsNewDescription: string;
isWhatsNewRequired: boolean;
onDismissButtonPress: () => void;
}
export declare const AutoUpdateOverlay: ({ currentVersion, iosStoreLink, androidStoreLink, icon, mainTitle, description, buttonTitle, isWhatsNewRequired, whatsNewDescription, primaryColor, backgroundColor, titleFontFamily, descriptionFontFamily, buttonTitleFontFamily, titleFontSize, descriptionFontSize, buttonTitleFontSize, }: AutoUpdateOverlayProps) => any;
export declare const ManualUpdateOverlay: ({ updateAvailable, currentVersion, iosStoreLink, androidStoreLink, icon, mainTitle, description, buttonTitle, primaryColor, backgroundColor, isWhatsNewRequired, isMandatoryUpdate, whatsNewDescription, onDismissButtonPress, titleFontFamily, descriptionFontFamily, buttonTitleFontFamily, titleFontSize, descriptionFontSize, buttonTitleFontSize, }: ManualUpdateOverlayProps) => any;
export {};
//# sourceMappingURL=index.d.ts.map