Splash Screen in React Native

แชร์
ฝัง
  • เผยแพร่เมื่อ 31 ต.ค. 2024

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

  • @Tom-gp6oy
    @Tom-gp6oy 4 ปีที่แล้ว +22

    This is not a "true" splash screen. This is a component that renders for a set time before navigating to another component. A real splash screen is an image that displays briefly while the initial components are still being loaded. That said, this is probably adequate for most apps, if you just want to display an intro-type image at the start. Handlebar labs has a tutorial on a real splash screen for react native, if anyone is interested. Oh, also if you do use the method in this tutorial, use the "replace" method instead of "navigate" to avoid the user being able to hit the back button to return to the intro image.

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

      Thanks for sharing your views... I will try to improve our contents in future

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

    I have seen many links online qnd viedoes on splash screen but i didn't get...
    But after watching this its easy to make splash screen thank you so much sir

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

    I have seen many links online qnd viedoes on splash screen but i didn't get...
    But after watching this its easy to make splash screen thank you

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

    Splash screen is a whole different concept mate. It should work during the white screen that pops up when u run the emulator.

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

    thanks a lot sir ....helped me by this tutorial

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

    i had a error when i run on my android it is say:
    Requiring unknown module "3", If you are sure the module exist try restarting Metro, You may also want to run 'yarn' or 'npm install'
    do you know how can i fix it?

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

    hello sir, can i replace splash screen this way instead of npm react-native-splash-screen package?

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

    when i run App.js file splash screen does not appear it gives only blank screen neither any error but when i run splash and login file separately then it works but not combine... please answer me how to resolve this problem.

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

    Hi, when I use this, it gives me an error
    Undefined is not an object (evaluating '_this.props.navigation.navigate)
    How to remove this?

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

    My icon (48px) is occupying the full page. What should i change?
    var bg = require('./../../assets/bg.png')
    var logo = require('./../../assets/logo_48px.png')
    const {SCREEN_WIDTH, SCREEN_HEIGHT} = Dimensions.get("window");
    export default class Splash extends Component {
    render(){
    return (




    );
    }
    }

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

    How to write splash screen program in class to function..

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

    Does this still work in 21 Oct 2020?

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

    if i click on back button it goes to splash screen how to avoid that and exit the app from login screen when click on back button

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

      thqnks for your valuable feed back.
      I will share it tonight

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

      @@ComputerScienceTutorial thank you

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

      @nishad patil check the video

    • @Tom-gp6oy
      @Tom-gp6oy 4 ปีที่แล้ว

      use .replace instead of .navigate and the user won't be able to use the back button

    • @BharatSingh-zk8lx
      @BharatSingh-zk8lx 4 ปีที่แล้ว

      @@Tom-gp6oy yes or u can make changes to back handler

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

    i have a new error
    createnavigationfactory is not a function?
    how can i solve it

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

    how to I can remove blank screen before splash screen

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

    How can we write constructor in function

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

      in functional component - use useEffect() hook instead of constructor in class.

  • @joseph.aowigo7553
    @joseph.aowigo7553 4 ปีที่แล้ว

    2020 developer still using windows 7 am off

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

    react navigation could not found in project - how can i solve this error

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

      Have You install the following packages for navigation
      Package required for React Native Navigation
      1. npm install react-navigation --save
      2. npm install react-native-gesture-handler --save
      3. npm install react-navigation-stack --save
      run these command one by one at terminal. make sure internet is ON

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

      @@ComputerScienceTutorial is this is react navigation v4

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

      @@shubhamjain1998 yes

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

    This is not called a splash screen