Introduction to React Native Web

Поделиться
HTML-код
  • Опубликовано: 10 фев 2025
  • In this video we convert a scoreboard in React to use React Native Web, learn how to style our elements and some differences when collecting input, using buttons, and rendering lists.
    ---------- Course
    Want to go deeper with Next.js? Join me in my Next Level Next.js course where over 29 videos and 8 hours of content we'll build a full application from start to finish. We use TypeScript, GraphQL, Prisma, Apollo, Mapbox, Firebase and lots more. courses.leighh...
    ---------- Links
    React Native Web - necolas.github...
    Starting Code - github.com/lei...
    Source Code - github.com/lei...
    ---------- Connect
    Join this channel - / @leighhalliday
    Join me on Discord - / discord

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

  • @ToddDunning
    @ToddDunning 3 года назад +11

    Informative and well organized content Leigh. It's hilarious for me as a 20-year CSS guy, how that world always reinvents new complexities to do the exact same damn thing we were doing in the last century. Now FB is introducing that shockingly new concept, the "Stylesheet" lol.

    • @MaFd0n
      @MaFd0n Год назад

      I see where you're coming from, but if you follow this train of thought you will end up having to type assembly or binary code. Or lets toss out our tracktors and start plowing our fields with our bare hands again for that matter. What I'm trying to say: let's not bash too much on "shockingly" new concepts, this way of working brought us to where we are today. Cudoz to you, 20-year CSS guy, lol.

  • @Eliasdbr
    @Eliasdbr 2 года назад +2

    You are very good at explaining! Congratulations! One observation about conditional rendering:
    At the FlatList part, you have: {data && }
    This is good until data is falsy (let's say an empty string) and instead of showing nothing, it will show the falsy value, causing a "Values can only be rendered inside Text components" error on React Native.
    The same can happen with numbers.
    So the best way to do conditional rendering, is to do it with a ternary operator.
    I.E. { data ? : null }

  • @user-amatish16
    @user-amatish16 3 года назад

    Hola Leigh, llegué desde el canal @Leigh en Español,
    excelentes videos, gracias por el excelente contenido en ambos canales, por favor no abandones el otro canal !

  • @SufianBabri
    @SufianBabri 7 месяцев назад

    Excellent video. I was wondering how could I add React Native Web to my RN mobile app.
    Thanks to the developer(s) of this babel plugin. I was thinking maybe we need to separate the UIs after all. 😅

  • @guilleagudelo777
    @guilleagudelo777 2 года назад

    Awesome video. Thanks!

  • @CoryTheSimmons
    @CoryTheSimmons 3 года назад +5

    I'd love to see a follow-up to this with actually deploying a RNW app to Apple and Play Stores, as well as the web. Bonus points if it's setup so a push to master deploys everywhere. 😇 I feel like if someone could figure out Next/RNW with Expo + ToDesktop deploys then they'd have The Holy Grail of one-codebase setups.

    • @ashleyhylton802
      @ashleyhylton802 2 года назад +1

      I am currently developing an app with expo, react native and firebase which has both native and web side, I'll figure it out! lol

    • @PrinceJJGoated
      @PrinceJJGoated 2 года назад

      @@ashleyhylton802 best of luck, I'm starting a project with that aim too!

    • @deepaknamdev9862
      @deepaknamdev9862 Год назад

      How to add an icon for web??

  • @ludwigvillalba1886
    @ludwigvillalba1886 2 года назад

    Thanks for sharing

  • @SzTz100
    @SzTz100 3 года назад

    Brilliant explanation

  • @evranfurkan
    @evranfurkan 3 года назад

    Thank you Leigh!

  • @noccer
    @noccer 3 года назад

    Thanks for sharing, very informative. ☘

  • @SonAyoD
    @SonAyoD Год назад +3

    How is this for seo?

  • @herubond3610
    @herubond3610 3 года назад

    Thanks for share Leigh! Is there any specific use case when to use React Native Web instead of Reactjs?

  • @amitsinghphartiyal878
    @amitsinghphartiyal878 Год назад

    Can we have same code base for navigation. I was trying to use react-navigation. But it doesn't seem to work.

  • @ocoocososococosooooosoococoso
    @ocoocososococosooooosoococoso 3 года назад +1

    This is very interesting and thank you for sharing. But, what is the purpose of using React Native Web? In which case do we want to use it? Are these both compatible and responsive in both mobile and web?? Can we still upload in App store or Android store?It would be great if that's possible.

    • @CoryTheSimmons
      @CoryTheSimmons 3 года назад +1

      Yes. One codebase to rule them all.

  • @Thanveershah
    @Thanveershah 3 года назад

    Is it a smart idea to convert an existing ecommerce RN app to RNW ?

  • @jeffshih945
    @jeffshih945 3 года назад

    How do you handle responsive design with RNW? Is it possible to leverage media queries?

  • @StEvUgnIn
    @StEvUgnIn Год назад

    We didn’t really of your app still works. You should try another value when porting your code to another UI.