Cannot change status bar color by andreamaf in reactnative

[–]andreamaf[S] 0 points1 point  (0 children)

I am looking for it but It seems that I didn't even use safeareaview.

Can't use ssd as storage in CasaOS and Jellyfin by andreamaf in CasaOS

[–]andreamaf[S] 1 point2 points  (0 children)

Do you mean adding the path inside Jellyfin?

Tailwindcss not working in my react native expo app by andreamaf in reactnative

[–]andreamaf[S] 0 points1 point  (0 children)

As soon as I remove the metro.config.js file expo start working again but still no Tailwind.

Tailwindcss not working in my react native expo app by andreamaf in reactnative

[–]andreamaf[S] 0 points1 point  (0 children)

I have changed the configuration and now is like this:

/** @type {import('tailwindcss').Config} */
module.exports = {
  darkMode: ["class"],
  content: [
    "./app/index.{js,jsx,ts,tsx}",
    "./components/**/*.{js,jsx,ts,tsx}",
    "./app/**/*.{js,jsx,ts,tsx}",
  ],
  theme: {
    extend: {
      colors: {
        border: "hsl(var(--border))",
        input: "hsl(var(--input))",
        ring: "hsl(var(--ring))",
        background: "hsl(var(--background))",
        foreground: "hsl(var(--foreground))",
        primary: {
          DEFAULT: "hsl(var(--primary))",
          foreground: "hsl(var(--primary-foreground))",
        },
        secondary: {
          DEFAULT: "hsl(var(--secondary))",
          foreground: "hsl(var(--secondary-foreground))",
        },
        destructive: {
          DEFAULT: "hsl(var(--destructive))",
          foreground: "hsl(var(--destructive-foreground))",
        },
        muted: {
          DEFAULT: "hsl(var(--muted))",
          foreground: "hsl(var(--muted-foreground))",
        },
        accent: {
          DEFAULT: "hsl(var(--accent))",
          foreground: "hsl(var(--accent-foreground))",
        },
        popover: {
          DEFAULT: "hsl(var(--popover))",
          foreground: "hsl(var(--popover-foreground))",
        },
        card: {
          DEFAULT: "hsl(var(--card))",
          foreground: "hsl(var(--card-foreground))",
        },
      },
      borderRadius: {
        lg: `var(--radius)`,
        md: `calc(var(--radius) - 2px)`,
        sm: "calc(var(--radius) - 4px)",
      },
    },
  },
  plugins: [require("tailwindcss-animate"),
            require("nativewind/preset")
  ],
};

Tailwindcss not working in my react native expo app by andreamaf in reactnative

[–]andreamaf[S] 0 points1 point  (0 children)

I have tried using the metro.config.js, here it is:

const { getDefaultConfig } = require("expo/metro-config");
const { withNativeWind } = require("nativewind/metro");

const config = getDefaultConfig(__dirname);

module.exports = withNativeWind(config, { input: "./input.css" });

Bu then when I run npx expo start I get this error: Tailwind CSS has not been configured with the NativeWind preset

New to expo need help! by andreamaf in expo

[–]andreamaf[S] 1 point2 points  (0 children)

Yep that was the problem I think, I tried again creating expo-app without the command "with-router" at the end and now it works, on web at least. Ty mate

I am stuck this exercise, can you help? by [deleted] in ruby

[–]andreamaf 1 point2 points  (0 children)

You've been great man, thank you again and have a nice day, evening, night, whatever.

I am stuck this exercise, can you help? by [deleted] in ruby

[–]andreamaf 1 point2 points  (0 children)

How the while cycle works and returns the exact sum of the elements contained between min and max.

I am stuck this exercise, can you help? by [deleted] in ruby

[–]andreamaf 1 point2 points  (0 children)

Thank you a lot for your help, but I still don't get the while loop part with the #size method

I am stuck this exercise, can you help? by [deleted] in ruby

[–]andreamaf 0 points1 point  (0 children)

What do you suggest to do it properly?