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
Tag: react-native
React Native Android Native Module Works Well on Debug but Doesn’t Work on Release
I’ve created an Android Native Module in my React Native App to get User Installed Apps List. it works well on Debug but doesn’t work on Release. *Note : I’ve also tried to use a npm package called react-native-android-installed-apps, but it doesn’t work, so I decided to created a Native Module. I don’t know what’s wrong that caused my Native
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
How to lock Android device after unlocking with setShowWhenLocked(true);
I am creating a video calling app and have the following code which is called when the application receives a push notification – it unlocks the screen and presents an ‘incoming call’ user interface: This works fine when a call is incoming – the user can interact with the app using the UI presented. However, the problem is is that
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
Error with react-native run-android after upgrade to react-native version 0.60.4
I am upgrading react-native from 0.59.5 to 0.60.4 with my existing application. But facing a problem as below And my build.gradle is I have absolutely no clue what this error is about and could not find much helpful articles. Please help me out. Answer Looks like Gradle is currently erroring on builds using openJDK-13. Here’s a Github issue thread. Check
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