From 5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Tue, 20 Jul 2021 21:24:52 +0300 Subject: WIP --- app_expo/services/reactotron/reactotron-config.ts | 30 +++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app_expo/services/reactotron/reactotron-config.ts (limited to 'app_expo/services/reactotron/reactotron-config.ts') diff --git a/app_expo/services/reactotron/reactotron-config.ts b/app_expo/services/reactotron/reactotron-config.ts new file mode 100644 index 0000000..40e9c93 --- /dev/null +++ b/app_expo/services/reactotron/reactotron-config.ts @@ -0,0 +1,30 @@ +export interface ReactotronConfig { + /** The name of the app. */ + name?: string + /** The host to connect to: default 'localhost'. */ + host?: string + /** Should we use async storage */ + useAsyncStorage?: boolean + /** Should we clear Reactotron when load? */ + clearOnLoad?: boolean + /** Root state logging. */ + state?: { + /** log the initial data that we put into the state on startup? */ + initial?: boolean + /** log snapshot changes. */ + snapshots?: boolean + } +} + +/** + * The default Reactotron configuration. + */ +export const DEFAULT_REACTOTRON_CONFIG: ReactotronConfig = { + clearOnLoad: true, + host: 'localhost', + useAsyncStorage: true, + state: { + initial: true, + snapshots: false, + }, +} -- cgit v1.2.3