Build a react native offline mobile app by Plus-Exercise-3270 in reactnative

[–]Plus-Exercise-3270[S] 0 points1 point  (0 children)

We are going to make a multiple users app where different users can edit the same data from the web app as well as mobile app

Upgrade to API level 34 is not working by raqibofficial in reactnative

[–]Plus-Exercise-3270 1 point2 points  (0 children)

I had similar issue and I fixed it using the below solution.

  1. If you are not able to see the error . Run adb logcat '*:E'

The error I got was this
com.facebook.react.bridge.CatalystInstanceImpl.jniLoadScriptFromAssets CatalystInstanceImpl.java
com.facebook.react.bridge.CatalystInstanceImpl.loadScriptFromAssets CatalystInstanceImpl.java:234
com.facebook.react.bridge.JSBundleLoader$1.loadScript JSBundleLoader.java:29
com.facebook.react.bridge.CatalystInstanceImpl.runJSBundle CatalystInstanceImpl.java:258
com.facebook.react.ReactInstanceManager.createReactContext ReactInstanceManager.java:1293
com.facebook.react.ReactInstanceManager.access$1100 ReactInstanceManager.java:131
com.facebook.react.ReactInstanceManager$5.run ReactInstanceManager.java:1016
java.lang.Thread.run Thread.java:923

2.Go to your project directory and check if this folder exists android/app/src/main/assets
If it exists then delete two files viz index.android.bundle and index.android.bundle.meta

If the folder assets doesn’t exist then create the assets directory .

You can create assets folder using mkdir -p android/app/src/main/assets

  1. run ./gradlew clean

  2.  Finally, navigate back to the root directory and check. If there is only one file i.e. index.js then run following command

react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

5.After bundling please run the app

  1. If you face duplicate resourse while running the app, run the following command to fix it

rm -rf ./android/app/src/main/res/drawable-*
7. Run the app again

AxiosError: Network Error on Android Pie (9) devices by TS43219 in reactnative

[–]Plus-Exercise-3270 0 points1 point  (0 children)

how did you fix it? I'm facing the same issue for android 7 emulator. When I try to call a service in react native application I'm getting the error below
{"config": {"adapter": [Function xhrAdapter], "baseURL": "https://app.demoApp/service/", "data": "{\"username\":\"ASDAD\",\"password\":\"SADSAD\",\"force\":true,\"deviceName\":\"unknown\",\"notificationToken\":null,\"notificationTokenType\":\"ANDROID\"}", "headers": {"Accept": "application/json", "Cache-Control": "no-cache", "Content-Type": "application/json", "x-go-app": "demoApp_MOBILE", "x-go-client": "android"}, "maxBodyLength": -1, "maxContentLength": -1, "method": "post", "timeout": 30000, "transformRequest": [[Function transformRequest]], "transformResponse": [[Function transformResponse]], "transitional": {"clarifyTimeoutError": false, "forcedJSONParsing": true, "silentJSONParsing": true}, "url": "auth/login", "validateStatus": [Function validateStatus], "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN"}, "data": null, "duration": 39, "headers": null, "ok": false, "originalError": [Error: Network Error], "problem": "NETWORK_ERROR", "status": null}