UNPKG

@prosperitainova/dumbo-react-native

Version:
54 lines 2.46 kB
import React from 'react'; import { ImageSourcePropType, GestureResponderEvent } from 'react-native'; /** Props for LandingView component */ export type LandingViewProps = { /** Company image to load in top right. Can pass in many ways including require `require('../../assets/images/image.png')` */ companyImage?: ImageSourcePropType; /** Product image to load under. Can pass in many ways including require `require('../../assets/images/image.png')` */ productImage: ImageSourcePropType; /** Company image size (defaults to 61px x 24px). Defaults should be followed; but slight (few pixel) alterations may be needed based on image used. */ companyImageSize?: { width: number; height: number; }; /** Product image size (defaults to 96px x 96px). Defaults should be followed; but slight (few pixel) alterations may be needed based on image used. */ productImageSize?: { width: number; height: number; }; /** Product name (full legal name) */ longProductName: string; /** Version text to show on screen (normally: `Version 5.2.3 (30)`) */ versionText: string; /** Copyright text (normally: `Copyright (c) YYYY Company`) */ copyrightText: string; /** Text to show for privacy policy */ privacyPolicyText?: string; /** onPress event when Privacy policy pressed */ privacyPolicyOnPress?: (event: GestureResponderEvent) => void; /** onLongPress event when Privacy policy pressed */ privacyPolicyOnLongPress?: (event: GestureResponderEvent) => void; /** Text to show for continue button */ continueText: string; /** onPress event when Continue pressed */ continueOnPress: (event: GestureResponderEvent) => void; /** onLongPress event when Continue pressed */ continueOnLongPress?: (event: GestureResponderEvent) => void; /** Indicate that continue is disabled */ continueDisabled?: boolean; }; /** * LandingView component for showing the IBM app landing page * * {@link https://github.com/carbon-design-system/carbon-react-native/blob/main/example/src/Views/LandingView.tsx | Example code} */ export declare class LandingView extends React.Component<LandingViewProps> { private resizeEvent; private get styles(); private get heightSafe(); private get banner(); componentDidMount(): void; componentWillUnmount(): void; render(): React.ReactNode; } //# sourceMappingURL=index.d.ts.map