reactotron-react-native

  • Version 5.1.4
  • Published
  • 134 kB
  • 2 dependencies
  • MIT license

Install

npm i reactotron-react-native
yarn add reactotron-react-native
pnpm add reactotron-react-native

Overview

A development tool to explore, inspect, and diagnose your React Native apps.

Index

Variables

variable reactNativeCorePlugins

const reactNativeCorePlugins: (
| ((reactotron: ReactotronCore) => {
features: {
trackAsyncStorage: () => void;
untrackAsyncStorage: () => void;
};
})
| (() => { onCommand: (command: any) => void })
| ((reactotron: ReactotronCore) => { onConnect: () => void })
)[];

    variable reactotron

    const reactotron: ReactotronReactNative;

      Functions

      function asyncStorage

      asyncStorage: (
      options?: AsyncStorageOptions
      ) => (reactotron: ReactotronCore) => {
      features: { trackAsyncStorage: () => void; untrackAsyncStorage: () => void };
      };

        function devTools

        devTools: () => () => { onCommand: (command: any) => void };

          function networking

          networking: (
          pluginConfig?: NetworkingOptions
          ) => (reactotron: ReactotronCore) => { onConnect: () => void };

            function openInEditor

            openInEditor: (
            pluginConfig?: OpenInEditorOptions
            ) => () => { onCommand: (command: any) => void };

              function overlay

              overlay: () => () => {
              onCommand: (command: any) => void;
              features: {
              overlay: (
              WrappedComponent: React.ComponentType
              ) => (props?: Record<string, any>) => React.JSX.Element;
              };
              };

                function storybook

                storybook: () => () => {
                onCommand: (command: any) => void;
                features: {
                storybookSwitcher: (
                storybookUi: any
                ) => (
                WrappedComponent: React.ComponentType<any>
                ) => (props: any) => React.JSX.Element;
                };
                };
                • A plugin which provides .storybookSwitcher() on Reactotron.

                function trackGlobalErrors

                trackGlobalErrors: (
                options?: TrackGlobalErrorsOptions
                ) => (reactotron: ReactotronCore) => {
                onConnect: () => void;
                features: { reportError: (error: ExtendedExceptionData) => void };
                };
                • Track global errors and send them to Reactotron logger.

                function trackGlobalLogs

                trackGlobalLogs: () => (reactotron: ReactotronCore) => { onConnect: () => void };
                • Track calls to console.log, console.warn, and console.debug and send them to Reactotron logger

                Interfaces

                interface ReactotronReactNative

                interface ReactotronReactNative extends Reactotron, ReactNativePluginFeatures {}

                  property asyncStorageHandler

                  asyncStorageHandler?: AsyncStorageStatic;

                    property setAsyncStorageHandler

                    setAsyncStorageHandler: (asyncStorage: AsyncStorageStatic) => this;

                      property useReactNative

                      useReactNative: (options?: UseReactNativeOptions) => this;

                        interface UseReactNativeOptions

                        interface UseReactNativeOptions {}

                          property asyncStorage

                          asyncStorage?: AsyncStorageOptions | boolean;

                            property devTools

                            devTools?: boolean;

                              property editor

                              editor?: OpenInEditorOptions | boolean;

                                property errors

                                errors?: TrackGlobalErrorsOptions | boolean;

                                  property log

                                  log?: boolean;

                                    property networking

                                    networking?: NetworkingOptions | boolean;

                                      property overlay

                                      overlay?: boolean;

                                        property storybook

                                        storybook?: boolean;

                                          Package Files (10)

                                          Dependencies (2)

                                          Dev Dependencies (36)

                                          Peer Dependencies (1)

                                          Badge

                                          To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                                          You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/reactotron-react-native.

                                          • Markdown
                                            [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/reactotron-react-native)
                                          • HTML
                                            <a href="https://www.jsdocs.io/package/reactotron-react-native"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>