React Native Expo with Typescript and Tailwind CSS (NativeWind V4) - 2024

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 32

  • @PiotrDrechsler
    @PiotrDrechsler 4 месяца назад +2

    I exactly needed these instructions! Thank you :)

  • @deeplySaid__
    @deeplySaid__ 3 месяца назад +1

    This is a very helpful tutorial. Keep up with the good content. Not many developers are sharing content for ts in RN!

  • @genio5193
    @genio5193 3 месяца назад

    Thank you SO MUCH!!!!
    i had so many problems and i almost gave up and was about to just use stylesheet but watching ur video helped me so much!!!!
    Thank you again

  • @amanueltesfaye3743
    @amanueltesfaye3743 2 месяца назад

    Thank you so much, this actually worked like a charm, i've been running into issues trying to integrate tailwindcss into react native using tsx but this solved it, I really appreciate the effort

  • @user-tt6qw4yz9f
    @user-tt6qw4yz9f Месяц назад

    You're the best. Thank you so much. Was having such a bothersome time getting this configured for native & web. Subscribing!

  • @olisaankwenze3725
    @olisaankwenze3725 Месяц назад

    Nativewind wasn't working for my previous projects, but it is now!! thank you so much!!!

  • @bonbonstoryai
    @bonbonstoryai 3 месяца назад

    Thank you for this video! Successfully built my first app following your instructions.

  • @diegoruelas603
    @diegoruelas603 15 дней назад

    This is Golden!

  • @charlesmwaniki1868
    @charlesmwaniki1868 Месяц назад

    Thank you for the content.

  • @AmOfGod
    @AmOfGod 3 месяца назад

    Thank you man, subscribed

  • @marianivanov6431
    @marianivanov6431 10 дней назад +1

    very energic voice 😂

  • @ahmeds.elgendy2691
    @ahmeds.elgendy2691 5 месяцев назад +1

    12:40
    omg i just saved my ass

  • @tidianekeita9733
    @tidianekeita9733 Месяц назад

    ty bro

  • @seneshpawan4277
    @seneshpawan4277 2 месяца назад

    Thanks a lot. : )

  • @brikka
    @brikka 3 месяца назад

    Thanks so much!

  • @loreleieleanor8124
    @loreleieleanor8124 3 месяца назад

    Thank you so much

  • @bohdan-tolmachov
    @bohdan-tolmachov 29 дней назад

    in the end of all steps (12:39) i am stuck on getting this error:
    tailwindcss(ios) rebuilding... TypeError: style.declarations.findLast is not a function
    at setStyleForSelectorList (/Users/mac/Desktop/projects/rn-voice-assistant-openai/node_modules/react-native-css-interop/src/css-to-rn/index.ts:358:54)
    at extractRule (/Users/mac/Desktop/projects/rn-voice-assistant-openai/node_modules/react-native-css-interop/src/css-to-rn/index.ts:175:11)
    at Rule (/Users/mac/Desktop/projects/rn-voice-assistant-openai/node_modules/react-native-css-interop/src/css-to-rn/index.ts:82:9)
    at cssToReactNativeRuntime (/Users/mac/Desktop/projects/rn-voice-assistant-openai/node_modules/react-native-css-interop/src/css-to-rn/index.ts:76:15)
    at sendUpdate (/Users/mac/Desktop/projects/rn-voice-assistant-openai/node_modules/react-native-css-interop/src/metro/poll-updates-server.ts:49:42)
    at Socket. (/Users/mac/Desktop/projects/rn-voice-assistant-openai/node_modules/nativewind/src/metro/tailwind-cli.ts:106:17)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Socket.Readable.push (node:internal/streams/readable:228:10)
    as you may see i guess the issue isn't in the path names. expo gave me a warning about incompatible versions of typescript and expo, and I updated them as it told me to do. but it still doesn't work. any ideas what could trigger this error message?

  • @PedroHenriqueFerreiraCardosoLi
    @PedroHenriqueFerreiraCardosoLi Месяц назад

    Hi,
    very helpful - I did follow the video and tailwind worked however, when I restart the simulator, it is not applying the tailwind styles. Not sure why, it is the same code and same file structure.
    I am getting this warning though which I don't understanding why it would stop working. But I will try to downgrade my typescript
    The following packages should be updated for best compatibility with the installed expo version:
    typescript@5.5.4 - expected version: ~5.3.3

    • @PedroHenriqueFerreiraCardosoLi
      @PedroHenriqueFerreiraCardosoLi Месяц назад

      for some weird reason, after saving the global file again it started working. But I haven't changed it since the first time. It was a copy and paste from the docs. Weird

    • @ReactJsJourney
      @ReactJsJourney  Месяц назад

      @@PedroHenriqueFerreiraCardosoLi Yeah weird things happen all the time. Just make sure that "tailwind.config.js" has all proper values in the "content" array.

  • @nafey6691
    @nafey6691 3 месяца назад +1

    After 2 days.

  • @Samsungi7500fan
    @Samsungi7500fan 2 месяца назад

    My mac says
    zsh: no matches found: nativewind@^4.0.1.
    Any idea?

    • @ReactJsJourney
      @ReactJsJourney  2 месяца назад

      When? after or during which step?

    • @Samsungi7500fan
      @Samsungi7500fan 2 месяца назад

      @@ReactJsJourney Right after:
      npx expo install nativewind@^4.0.1 react-native-reanimated tailwindcss
      Nothing gets installed.

    • @ReactJsJourney
      @ReactJsJourney  2 месяца назад

      @@Samsungi7500fan try the suggestions below. Add quotes or \ before ^
      github.com/tailwindlabs/tailwindcss/discussions/3575#discussioncomment-366208

    • @Samsungi7500fan
      @Samsungi7500fan 2 месяца назад +1

      @@ReactJsJourney Found the solution. I had to add quotes to "nativewind@^4.0.1". 🙄

  • @Statyw
    @Statyw 3 месяца назад

    Good tutorial but your voice sounds like you are exhausted and have no energy but anyway thank you for the video!

    • @ReactJsJourney
      @ReactJsJourney  3 месяца назад +2

      Haha.. That's the sound of my normal voice, believe it or not. I am not any more tired than a normal day. Please feel free to speed up the video to 1.5x (some people say that makes me sound more excited😀). Thanks for watching the video :)

    • @usmankhalid9516
      @usmankhalid9516 3 месяца назад

      @@ReactJsJourney I did 2x and now you are on beast mode

    • @ReactJsJourney
      @ReactJsJourney  3 месяца назад

      @@usmankhalid9516 🤣

  • @keenanreed5341
    @keenanreed5341 4 месяца назад

    Thanks for doing this!