MCPcopy Create free account
hub / github.com/callstack/react-native-paper / handleAppearanceChange

Function handleAppearanceChange

src/core/PaperProvider.tsx:36–41  ·  view source on GitHub ↗
(
    preferences: Appearance.AppearancePreferences
  )

Source from the content-addressed store, hash-verified

34 React.useState<ColorSchemeName>(colorSchemeName);
35
36 const handleAppearanceChange = (
37 preferences: Appearance.AppearancePreferences
38 ) => {
39 const { colorScheme } = preferences;
40 setColorScheme(colorScheme);
41 };
42
43 React.useEffect(() => {
44 let subscription: NativeEventSubscription | undefined;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…