Skip to main content

Posts

Showing posts from March, 2020

SOLUTION - EXPO not showing changes on reload and code changes

SOLUTION - EXPO not showing changes on reload and code changes We all know that expo is a powerful tool for react native app development, and we can easily develop apps by using expo but sometimes EXPO stops working properly and stop showing realtime changes in real device or emulator. So today we will see how to solve expo files updating issue so if expo is not working and not showing realtime updates and code changes in the device, then we need to follow below steps: Solution 1 Open your terminal and press Ctrl+R to refresh app and then check it will work, if it will not work then please try solution 2 that also worked for me. Solution 2 Here I am telling solution for android device but steps will be similar for IOS devices also. Go to Settings -> Apps -> Expo Then click on Clear Cache button Then click on Clear Data button Now again open expo app and scan QR code to run react native app. Now this time your app will show changes. :) Thanks for reading

SOLUTION - Your project must have an Android package set in app.json React Native

SOLUTION - React Native Your project must have an Android package set in app.json React native is a great choice to create an android and ios app by using the same codebase. You can create a simple hello world app and generate .apk and .ipa file but sometimes mostly first time we follow some tutorial and create a basic app and try to build app file or generate apk file by using the command  " expo build:android " or "expo build:ios ", we get an error "Your project must have an Android package set in app.json", so here is the solution of this error:- Solution 1 Open app.json file that should exist on your root directory now check below code already exist or not, if not exist then add this code in your app.json file "android": {       "package": "com.shubham715.helloworld",     }, For IOS "ios": {       "bundleIdentifier": "com.shubham715.helloworld",       "supportsTablet": tr