UNPKG

react-native-acoustic-connect-beta

Version:

BETA: React native plugin for Acoustic Connect

37 lines 1.7 kB
/******************************************************************************************** * Copyright (C) 2025 Acoustic, L.P. All rights reserved. * * NOTICE: This file contains material that is confidential and proprietary to * Acoustic, L.P. and/or other developers. No license is granted under any intellectual or * industrial property rights of Acoustic, L.P. except as may be provided in an agreement with * Acoustic, L.P. Any unauthorized copying or distribution of content from this file is * prohibited. * * Created by Omar Hernandez on 5/9/25. * ********************************************************************************************/ import React from 'react'; /** * HOC Wrapper that automatically tracks dialog show/dismiss events and button clicks * Works with any dialog component that has 'visible' and 'onDismiss' props * * Supported Dialog Patterns: * - react-native-paper Dialog components * - Custom modal components with visible/onDismiss props * - Components with different prop names (show/hide, open/close, etc.) * - Components with custom button implementations * - Components with nested dialog structures */ export declare function withAcousticAutoDialog(DialogComponent: React.ComponentType<any>): React.ComponentType<any>; /** * Convenience function to create tracked versions of common dialog components */ export declare function createTrackedDialogComponents(): {}; /** * Hook to get tracked dialog components */ export declare function useTrackedDialogs(): { withAcousticAutoDialog: typeof withAcousticAutoDialog; createTrackedDialogComponents: typeof createTrackedDialogComponents; }; //# sourceMappingURL=withAcousticAutoDialog.d.ts.map