Instructor: Open index.js, which is the entry point for the React Native app. The app registry is used to load a React component onto the screen. The component that is being loaded is app. Let's open app.js. Now you can see the component that is being shown on the simulator.
Another way to refresh the app is to open the developer menu with command-D on a Mac or control-D on Windows and select reload. On Android, you can double-tap R to reload or bring up the developer menu with command-M on a Mac or control-M on Windows and select reload.
There's another way to reload and see changes on both iOS and Android as well. Open the developer menu and enable live reload. In this mode, a watcher will watch the files in your project. Saving any JS file will trigger the simulator to reload the app.
It will reload the components without a full refresh. When we make changes now, you can see that it's hot reloading without refreshing the entire bundle. Hot reloading can save a lot of time when you're developing, but sometimes it doesn't work very well. Then you have to go back to a full refresh. For that reason, we'll switch off hot reloading for this app.