Questions tagged [react-native-modules]
41 questions
1
vote
0 answers
Cannot override receiveCommand method in React Native Module manager
I'm trying to call UI component's method from Javascript. I follow official React Native documentation but I got this error:
error: method does not override or implement a method from a supertype
My WidgetManager.java
public class WidgetManager…

Kevin Bui
- 524
- 3
- 10
1
vote
1 answer
How to implement okhttp 5.0.0 in react native module
I need to use the alpha-staged Java OkHttp library for a login method. It has the Happy Eyeballs (RFC 6555) Algorithm implemented, which improves loading times on requests between IPv6 and IPv4.
OkHttp (Version 5.0.0-alpha-5) supports a fastFallback…

EleKadele
- 48
- 6
1
vote
0 answers
NoClassDefFound React Native Library Install Android
I am trying to install https://github.com/theopolisme/react-native-stripe-terminal on a fresh react native init project. When I try to initialize the library I get the following runtime error.
Error: Exception in HostObject::get for prop…

zachary
- 108
- 1
- 9
1
vote
0 answers
How can I create an android app link for my react native application?
I have set up an android app link for my react native application...But
whenever I tap the link and choose my application to open it, system does try to open my app but my app crashes...I have set up the android linking properly and the activity…

Pro
- 445
- 4
- 14
1
vote
0 answers
How to add an extra module for bridge on iOS?
I have created a new native module in my React Native application (It's called RCTAVAudioSessionModule).
When looking in the AppDelegate I found this code snippet:
- (NSArray> *)extraModulesForBridge:(RCTBridge *)bridge
{
…

Keselme
- 3,779
- 7
- 36
- 68
1
vote
0 answers
Not able to trigger delegate methods from a framework in react native modules for iOS applications
I am writing a react native project where I am trying to connect to a BLE device using BGXpress library via an iOS Application using react-native-modules.
I have been able to successfully discover the device and connect as well, but I am unable to…

Adarsh Rao
- 11
- 1
1
vote
1 answer
React Native module - Best practice to store java class
I'm building a React Native module with Kotlin. I have an external Java SDK that can discover peripherals on multiple protocols / networks / servers.
There is a Discovery class like this :
class Discovery(params: Params) {
fun start() {
//…

Lucien Perouze
- 590
- 1
- 4
- 13
1
vote
0 answers
How to display Native ios camera for real time opencv image processing using NativeModules in react native?
I want to Open Native Camera of ios when we click button in react native component.
Then i want to process realtime camera for Opencv methods.
i created View controller and UI but it's not working.
i create Storyboard with Imageview and button.
Here…

Jigar Prajapati
- 43
- 6
0
votes
1 answer
React Native Error: Module not found (I did't not have any ReactNative experience before)
I just new learner in AWS and I need the React Native to work on together to upload the image in react native interface and compare it but I did not have any experience with React Native. When I move the pointer to const [visitorName,…

I Can Done
- 31
- 4
0
votes
1 answer
react-native module - automatic CFlags
I created a react-native module. For iOS builds on Intel architecture I need the custom CFlags -maes -mpclmul
Right now it works if the "consuming" project configures those for my module by clicking Pods -> "My Module" -> Build Settings -> Other C…

Laurenz Honauer
- 254
- 1
- 12
0
votes
0 answers
How to handle NativeModules when writing tests for React Native
I'm learning to write tests for my React Native apps. (Yes, finally!)
I have some questions about how to handle imports that in turn use NativeModules.
I understand that the test runner don't actually run the react native app on a device, and…

Johan Nordberg
- 3,621
- 4
- 33
- 58
0
votes
0 answers
Fastest way to test native android modules when developing
I have started developing a Native Android Module for React Native 0.70.6 and from what I can see it seems that there is no way to quickly test any changes made to my native module on my device.
I have been using fast refresh for my development in…

Irie Railton
- 7
- 2
0
votes
1 answer
Sending Events to JavaScript from Your Native Module in React Native?
I'm trying to pass an event from my module to react native. I followed these steps Here but it didn't work as expected.
I don't receive errors but it simply doesn't work.
Here is my code in Android Studio inside my module:
package…

greta calamari
- 71
- 6
0
votes
0 answers
Expo and React Native - Context must be application context to avoid memory leak
I'm trying to implement a Visa SDK through React Native's Native Modules. I'm currently using Expo 46. So far, the application is registered correctly, and I can view the 3 methods that are exposed within the app.
Unfortunately, whenever I call the…

Jose A
- 10,053
- 11
- 75
- 108
0
votes
1 answer
Mocking Native Module with React Native Jest
I want to mock a native module for jest test case.
I tried this -
jest.mock('NativeModules', () => {
return {
UtilityFunc.getConstants: jest.fn(),
};
});
I know we can't access a property in such a way.
My Native module is UtilityFunc and…

Abhay
- 117
- 9