Dark Theme in React Native Tutorial | Switch Between Light & Dark Theme

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ก.พ. 2025
  • In this tutorial, you'll learn how to implement dark theme in react native app. In our project, we have implemented theme preferences where users can choose between light theme and dark theme. We have applied this by using react navigation and react native paper package.
    GitHub repo for this complete project bit.ly/3dZfb7U
    React Navigation v5 Tutorial Series • React Navigation 5 Tut...
    If you found my tutorials helpful, you can buy me a coffee from this link paypal.me/itzp...
    Follow me on GitHub github.com/itz...
    Subscribe to my Channel bit.ly/2PaUqOk
    For more tutorials on WordPress, React JS, React Native and Digital Marketing visit: www.pradipdebna...

ความคิดเห็น • 73

  • @Nayco.o
    @Nayco.o ปีที่แล้ว

    your are the godof coding, never stop the react native mobile app code on youtube !!!

  • @username-t1x
    @username-t1x 3 ปีที่แล้ว +1

    Awesome tutorial, thank you Pradip!

  • @gauthamvijayan
    @gauthamvijayan 3 ปีที่แล้ว +1

    Finally Understood everything about themes in React Native. Thanks a lot!

  • @dannylake1968
    @dannylake1968 3 ปีที่แล้ว +2

    Thanks for your efforts - this series has been great!

  • @PriyaPriya-uy3od
    @PriyaPriya-uy3od 2 ปีที่แล้ว

    You are great and well hearted to serve others👏👏👏👏👏👏

  • @onizuka_js1484
    @onizuka_js1484 2 ปีที่แล้ว +1

    Thanks a lot for your video! Really helpful!

  • @rakeshpk4991
    @rakeshpk4991 3 ปีที่แล้ว

    Your videos are really helful. Thanks you very much.

  • @DestinationDub
    @DestinationDub 4 ปีที่แล้ว +1

    This was a really wonderful tutorial... I learned SO much here!! Thanks a lot, Pradip!

  • @SangNguyen-bn6nn
    @SangNguyen-bn6nn 4 ปีที่แล้ว +1

    Great Tutorial! Thank you very much!

  • @landiboyy
    @landiboyy 3 ปีที่แล้ว +1

    Omg, this is more useful than the Udemy courses!!.
    Just a question, I saw that you're using Drawer Navigation from React Native Paper, but I couldn't find a video where you explain that, just the Drawer from React Navigation

    • @landiboyy
      @landiboyy 3 ปีที่แล้ว

      Forget it, I found it... I love your channel!

  • @yusuft.3587
    @yusuft.3587 4 ปีที่แล้ว

    Thanks so thanks you are a good man

  • @programmingpython584
    @programmingpython584 3 ปีที่แล้ว +2

    UI of your app looks pretty cool. Can you please suggest some libraries for frontend styling?

  • @quegiangson3786
    @quegiangson3786 4 ปีที่แล้ว +2

    Finally :) . Great thanks !

  • @webknowledgeentertainment
    @webknowledgeentertainment 3 ปีที่แล้ว

    Thank you for your sharing, really appreciate

  • @RenatoColossuss
    @RenatoColossuss 4 ปีที่แล้ว

    Truly and I want to congratulate and thank

    • @itzpradip
      @itzpradip  4 ปีที่แล้ว

      Thanks for your comment & support.

  • @maxaquilino7264
    @maxaquilino7264 4 ปีที่แล้ว +1

    Good clear video as usual. With my App though it does not seem to work for some reasons. When I assign DarkTheme to the container the screen does not turn black, nothing changes. My container wraps another component which then includes the Drawer.Navigator but it does not seem to propagate. I'm using Expo, maybe thats the reason...

  • @ankitraut7365
    @ankitraut7365 4 ปีที่แล้ว +3

    Hi Pradip ... Will you please create 1 video on where we will face issues creating an component with Class based approach... That will be appreciate 👍

  • @کوروشافشار-ي6ح
    @کوروشافشار-ي6ح 4 ปีที่แล้ว

    so so so goooooood. thanks man

  • @mrmaurice8951
    @mrmaurice8951 3 ปีที่แล้ว +1

    Very nice tutorial. How would you store this in Asyncstorage and check when app is launched if user has previous selected to turn on dark theme? Looking forward to your reply Pradip. Keep up the good work! 💪👍

  • @Ankitkumar-vw1zz
    @Ankitkumar-vw1zz 4 ปีที่แล้ว

    your all videos are awesome sir

    • @itzpradip
      @itzpradip  4 ปีที่แล้ว +1

      Thank you so much 😀

    • @Ankitkumar-vw1zz
      @Ankitkumar-vw1zz 4 ปีที่แล้ว +1

      @@itzpradip sir please make a video on creating an api and registration

  • @gauravtewari4134
    @gauravtewari4134 4 ปีที่แล้ว

    Awesome work

  • @ddutta2025
    @ddutta2025 4 ปีที่แล้ว

    Great tutorial series. Thank you

    • @itzpradip
      @itzpradip  4 ปีที่แล้ว

      Glad you like them!

  • @aftabufaq373
    @aftabufaq373 4 ปีที่แล้ว +1

    Hello sir. i have a question. i want to create a separate file for the functions used in useMemo() . how can i do this. please help me. i am stuck with this.

  • @rutulmehta307
    @rutulmehta307 4 ปีที่แล้ว +3

    How to use useTheme() hook in class component ? Can you make one video on that too.Dark theme using with class component ?

    • @karkivlog143
      @karkivlog143 3 ปีที่แล้ว

      There is withTheme HOC use that

  • @lilabajrami
    @lilabajrami 3 ปีที่แล้ว

    how do we get the username of the logged in user (via AuthContext) and display on the drawer navigation?

  • @IsaacGFlores
    @IsaacGFlores 3 ปีที่แล้ว +1

    Hi there! Your tutorials are great, I have learned a lot. Thanks a lot!
    I'm having problems on android, I get this error and I can't fix it.
    I use react-native with android studio and windows.
    The error it always throws me is:
    ERROR Invariant Violation: An error was thrown when attempting to render log messages via LogBox.
    requireNativeComponent: "RCTScrollContentView" was not found in the UIManager.

  • @GamingZone11
    @GamingZone11 4 ปีที่แล้ว

    but i have a question how to hide bottom tab when keyboard open in parent bottom tab screen. when using custom bottom tab component

  • @miguelangelmaidana9663
    @miguelangelmaidana9663 4 ปีที่แล้ว +3

    Greetings from Argentina! Excellent tutorial! A very good one could be to connect this same login to a BACKEND to authenticate and log in users of a database. with Node and Mongoose it would be great! I send you a big hug

    • @thahashahrod
      @thahashahrod 4 ปีที่แล้ว +1

      I would recommend trying aws cognito or firebase auth

  • @willyhorizont8672
    @willyhorizont8672 2 ปีที่แล้ว

    thanks sir

  • @JevgeniFenko
    @JevgeniFenko 3 ปีที่แล้ว +1

    Hi! You have very good tutorials. The only thing I miss is how to pass user data from api to drawer section, where we have avatar and user data. I can put them into async storage, but don't know how to get them and pass to the drawer.

  • @Thetiogamez
    @Thetiogamez 4 ปีที่แล้ว

    hi i'm going through work because i can't save it in asyncStorage npm has a tutorial saving the theme

  • @carloshenriquefonseca8459
    @carloshenriquefonseca8459 4 ปีที่แล้ว

    Niceee! Keep it going

  • @GamingZone11
    @GamingZone11 4 ปีที่แล้ว

    excellent work :)

  • @viettl469
    @viettl469 4 ปีที่แล้ว +1

    great content bro, tks!

    • @itzpradip
      @itzpradip  4 ปีที่แล้ว +1

      My pleasure!

  • @ryanrayworld
    @ryanrayworld 4 ปีที่แล้ว +1

    Awesome! Just 1 question though, how to implement highlighting, icon and text custom color of drawer items based on current screen? For instance your in Home screen, your icon and text color is different for other drawer items and when you go to Profile screen, the profile drawer item will change color as well. Again dark theme is also implemented. Thanks in advance!

  • @manmohangupta6905
    @manmohangupta6905 4 ปีที่แล้ว +3

    good content!
    Can you plz make videos to show logged in user
    data in drawer menu using context api so that we can access every where in project .
    thanks for making these type of videos , I subscribed your channel .

  • @HaidarDzaky
    @HaidarDzaky 4 ปีที่แล้ว

    can you tell me how to change bottom bar color too ?

  • @santiagoalbornoz7955
    @santiagoalbornoz7955 4 ปีที่แล้ว

    Can you add a video with changing dark and light mode in react navigation 4?

  • @deepakchahar21
    @deepakchahar21 4 ปีที่แล้ว +1

    nice tutorial bro, please upload more topics like API call, curd operations, video player custom, payment gateway(Indian), etc

    • @itzpradip
      @itzpradip  4 ปีที่แล้ว

      Thanks for suggestion. I'll try my best to cover these topics

  • @urazeem
    @urazeem 4 ปีที่แล้ว +1

    Excellent work!
    Sir please make a video tutorial on installing React Native without Android Studio so that I can run your projects which are so informative thankyou.

    • @abdifaishal6562
      @abdifaishal6562 4 ปีที่แล้ว

      have android phone? if so then you can find the installation on google how to use your real android device which is doesn't need android studio

  • @BuwanekaSirinath
    @BuwanekaSirinath 4 ปีที่แล้ว

    Good work .. keep it up (y)

  • @hurley3483
    @hurley3483 4 ปีที่แล้ว

    Hello friend, excellent video, only when the application in ios comes in the background it has a bug that loses views and header, how can I fix it?

  • @reidelgonzalezpaz4079
    @reidelgonzalezpaz4079 4 ปีที่แล้ว +1

    wow, excelent idea!!!!!! LIKEEEEEEE!!!!

  • @emyboybeats4330
    @emyboybeats4330 4 ปีที่แล้ว

    what UI library did you use??

    • @itzpradip
      @itzpradip  4 ปีที่แล้ว +2

      React native paper which is installed during react navigation 5 install

  • @shamilion
    @shamilion 4 ปีที่แล้ว

    Very nice

  • @hassanforever11
    @hassanforever11 4 ปีที่แล้ว +1

    Sir add otp authentication also along with otp component creation tutorial in this playlist it would be very helpful thanx in advance

  • @chiragprajapati6312
    @chiragprajapati6312 4 ปีที่แล้ว +1

    heyyy , i have been following you and this tutorial from many days, I have one question, I'm using redux and react-navigation 5, I make a function logoutuser in action file , how do use it in drawer to sign out user, please help

    • @matthewhall7489
      @matthewhall7489 4 ปีที่แล้ว

      Don't use Redux, is obsolete, useContext!

  • @maesema
    @maesema 4 ปีที่แล้ว

    Excellent!

  • @khurramgill7858
    @khurramgill7858 4 ปีที่แล้ว

    please make a video on how to get access
    to mobile camera by clicking a button in react native app screen

  • @Quick_Code
    @Quick_Code 4 ปีที่แล้ว +3

    Nice but you can do it with context to change theme easly. And asynstroage for save theme status next time when start. Thank me later.

    • @chiragprajapati6312
      @chiragprajapati6312 4 ปีที่แล้ว

      hey after the app closed and i start app again dark theme gone, how to fix it???

    • @anonymoussloth6687
      @anonymoussloth6687 4 ปีที่แล้ว

      Hi, could you share a resource that specifies how to do this?

    • @anonymoussloth6687
      @anonymoussloth6687 4 ปีที่แล้ว

      Hi, did you find a solution to your problem? If so, can you share the solution with me too?

    • @Quick_Code
      @Quick_Code 4 ปีที่แล้ว

      @@chiragprajapati6312 you can check it on splash screen. If asuncstroage have 1 the change theme.

    • @Quick_Code
      @Quick_Code 4 ปีที่แล้ว

      @@anonymoussloth6687 you can save the theme mode in asyncstroage. When evere user change theme the context data change and also asyncstroage data change.now if user quit app you have saved theme mode in asyncstroage.when user come back by default theme is light.then on splash screen in use effect faction get data from asyncstroage.now check the which theme user selected.if he selected dark then change the theme. Otherwise dont do anything because by defense its get light theme

  • @MuhammadUsman-pi7xm
    @MuhammadUsman-pi7xm 4 ปีที่แล้ว

    How to change project in expo.... index.js file how to implement in expo

  • @gururajmoger8649
    @gururajmoger8649 4 ปีที่แล้ว

    Pls do more ui with animation

    • @itzpradip
      @itzpradip  4 ปีที่แล้ว

      Sure I'll do

  • @pranjitmedhi6764
    @pranjitmedhi6764 4 ปีที่แล้ว

    Please keep the mic near your mouth. You are inaudible.