CupThread React Native & Expo SDK - v0.1.0
    Preparing search index...

    Function useCupThreadTheme

    • Hook providing the currently active theme name and resolved design color tokens.

      Returns { colors: ThemeColors; themeName: SdkTheme }

      An object containing themeName (e.g. 'midnight') and full colors tokens.

      function CustomHeader() {
      const { colors, themeName } = useCupThreadTheme();
      return (
      <Text style={{ color: colors.primary }}>
      Theme: {themeName}
      </Text>
      );
      }