react-native-xenon
Version:
A powerful in-app debugging tool for React Native.
63 lines • 2.06 kB
TypeScript
import { type JSX, type ReactNode } from 'react';
declare namespace Xenon {
interface Methods {
isVisible(): boolean;
show(): void;
hide(): void;
}
interface Props {
children: ReactNode;
/**
* If true, completely disables the debugger by rendering only the children components without any debugging functionality.
* @default false
*/
disabled?: boolean;
/**
* Determines whether the network inspector is automatically enabled upon initialization.
* @default true
*/
autoInspectNetworkEnabled?: boolean;
/**
* Determines whether the console inspector is automatically enabled upon initialization.
* @default true
*/
autoInspectConsoleEnabled?: boolean;
/**
* Defines the size of the interactive bubble used in the UI.
* @default 40
*/
bubbleSize?: number;
/**
* Defines the opacity level of the bubble when it is idle.
* @default 0.5
*/
idleBubbleOpacity?: number;
/**
* Domains to include in network interception. Defaults to all domains.
* @default undefined
* @example ['example1.com', 'api.example2.com']
*/
includeDomains?: string[];
}
/**
* Checks whether the debugger is currently visible.
* @returns `true` if the debugger is currently visible, otherwise `false`.
*/
const isVisible: () => boolean;
/**
* Makes the debugger visible. If it is already visible, this method has no additional effect.
* @returns `void`
*/
const show: () => void;
/**
* Hides the debugger. If it is already hidden, this method has no additional effect.
* @returns `void`
*/
const hide: () => void;
function Wrapper({ disabled, children, ...props }: Props): JSX.Element;
namespace Wrapper {
var displayName: string;
}
}
export default Xenon;
//# sourceMappingURL=Xenon.d.ts.map