Skip to content
Advertisement

Tag: react-native

Android: error: cannot find symbol packages.add(new MyAppPackage())

Please HELP!! I’m working on an app in react-native that involves using a native Calendar module. I’m trying to register this module with react native and I keep getting this error. This is how I’ve registered the module in MainApplication.java: This is the MyAppPackage.java file I’ve created using the tutorial here, https://reactnative.dev/docs/native-modules-android#register-the-module-android-specific.: Note: This app was previously created using the

react-native app error when try and test in emulator(?)

I get this error below whenever I try to test the app after typing the command npx react-native run-android. I tried setting paths in environmental variables. But still doesn’t work I tried reinstalling react-native but still does not work. I tried to reinstall JDK from java but finally, the app still does not run in the emulator. Any feedback is

The action ‘NAVIGATE’ with payload {“name”:“HomeScreen”,“params”:……”} was not handled by any navigator. Do you have a screen named ‘Home’?

The action ‘NAVIGATE’ with payload {“name”:”Home”,”params”:{“user”:{“id”:”VUUpROQPtKaXVef15e5XhxXNLrm1″,”email”:”anto22e@gmail.com”,”fullName”:”snertp0″}}} was not handled by any navigator. Do you have a screen named ‘Home’? I have this problem when I try to log in or register, I don’t know how to solve it. I have tried several ways that I have found but I can’t find the solution, Thank you! This is all the code

Google Nearby Messages API: Attempting to perform a high-power operation from a non-Activity Context

Calling subscribe on the Google Nearby Messages API for Android results in the Exception: My code: Note: The promise Parameter is from React Native, I’m trying to create a wrapper for the API. At the Log.d event inside my OnCompleteListener, it prints: I do have the API Key and the required Permissions (BLUETOOTH, BLUETOOTH_ADMIN) in my AndroidManifest.xml. On iOS the

Error: Unable to determine the current character, it is not a string, number, array, or object in react-native for android

Whenever I run react-native run-android while keeping the emulator running, I get this error. react-native run-ios wroks completely fine. As indicated in the error message, I tried running npm uninstall -g react-native react-native-cli but it didn’t work. Info about my environment: android/app/build.gradle below: android/build.gradle below : Initially I was getting this error: react-native build error: Could not find method implementation()

Encrypt By javascript and decrypt by Java

I use AES encryption in my react-native app as below Out come= encrypted: aK7+UX24ttBgfTnAndz9aQ== following is the code I use in my backend using java for get the decrypt output= decryted : = 123456[][][][][][][][][][] Iam getting out put as 16 bit as above. what I want is out put should come as only 123456. Answer I Suggest you use java.util.Base64

React Native Android Splash Screen

I’m trying to build a splash screen for an Android RN app. I’ve followed the steps described here : https://www.bignerdranch.com/blog/splash-screens-the-right-way/ Unfortunately, when trying to launch my app, the build is successful but the app crashes saying: Does any one know where this could come from ? I have the following code : SplashScreen.java MainActivity.java AndroidManifest.xml Answer OK, well it works

Advertisement