diff --git a/react-native-logs.config.js b/react-native-logs.config.js index c65911ce7..9d79d42ff 100644 --- a/react-native-logs.config.js +++ b/react-native-logs.config.js @@ -17,6 +17,7 @@ if ( process?.env?.NODE_ENV !== "test" ) { } const config = { + dateFormat: "iso", // eslint-disable-next-line no-undef severity: __DEV__ ? "debug" diff --git a/src/components/About.js b/src/components/About.js index 92a26be2e..bdaa93a08 100644 --- a/src/components/About.js +++ b/src/components/About.js @@ -1,8 +1,10 @@ // @flow +import classnames from "classnames"; import { Body1, Body2, + Button, Heading4, ScrollViewWrapper, Tabs, @@ -14,6 +16,7 @@ import type { Node } from "react"; import React, { useState } from "react"; import { Alert, Linking } from "react-native"; import { getBuildNumber, getVersion } from "react-native-device-info"; +import { useDebugMode } from "sharedHooks"; const aboutID = "about"; const teamID = "team"; @@ -22,6 +25,7 @@ const About = (): Node => { const [activeTab, setActiveTab] = useState( aboutID ); const appVersion = getVersion(); const buildVersion = getBuildNumber(); + const { isDebug, toggleDebug } = useDebugMode( ); const onTermsPressed = async () => { const url = "https://www.inaturalist.org/pages/terms"; @@ -119,6 +123,22 @@ const About = (): Node => { {`Version ${appVersion} (${buildVersion})`} +