From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 27 Sep 2025 02:14:26 +0530 Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f --- src/react-native-app/hooks/useColorScheme.web.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 src/react-native-app/hooks/useColorScheme.web.ts (limited to 'src/react-native-app/hooks/useColorScheme.web.ts') diff --git a/src/react-native-app/hooks/useColorScheme.web.ts b/src/react-native-app/hooks/useColorScheme.web.ts new file mode 100644 index 0000000..fe92ccd --- /dev/null +++ b/src/react-native-app/hooks/useColorScheme.web.ts @@ -0,0 +1,10 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 +// NOTE: The default React Native styling doesn't support server rendering. +// Server rendered styles should not change between the first render of the HTML +// and the first render on the client. Typically, web developers will use CSS media queries +// to render different styles on the client and server, these aren't directly supported in React Native +// but can be achieved using a styling library like Nativewind. +export function useColorScheme() { + return "light"; +} -- cgit v1.2.3