Questions tagged [react-native-native-module]

137 questions
4
votes
3 answers

React-native Access Device Camera? (Android Specifically)

I'm trying to allow users to upload a video in a react-native application, but am having trouble even getting access to the camera. ** Not using Expo. I used the react-native cli and used react-native-init to generate my project ** ** Using…
3
votes
1 answer

AudioManager setCommunicationDevice is not working on Android 12

I'm developing a mini native (Java) SDK to turn ON/OFF speaker for a react-native app for calls , because React-Native Incall Manager doesn't work properly on Android 12. Module is working good on Android 11, but since setSpeakerOn method from…
3
votes
0 answers

EAS Expo Build issue with Installing Dependencies?

I am trying to use EAS in my managed expo app but running into this issue at the build cmd(eas build). My app works perfectly fine when doing expo start. This is the error log I get from eas build. What should I do to fix this problem? I don't…
3
votes
0 answers

React Native iOS native module pass parameters

I am writing an NPM library that contains iOS & Android native modules. Important is that I need to pass parameters to the native module before startup. This works great for Android: package ... import com.facebook.react.bridge.* class…
erksch
  • 501
  • 4
  • 14
3
votes
0 answers

Only audio audible no video seen while playing media through android media player in react native Native-modules

I am trying to use native modules on react native and I want to play a video that has been prepared(mediaplayer.prepare()) in an android native mediaplayer . The mediaplayer is then added to a surface view and the surface view is added to the Adview…
3
votes
1 answer

How to add a thirdparty SDK (multiple .framework files) to react native library module?

I have built a react native library module (with RN 0.63). This module depends on some thirdparty SDKs. When integrated with Android (using .aar files) it works just fine. In case of iOS, I have been able to get the library module working without…
3
votes
0 answers

React Native - Native Modules iOS Empty

I am creating an iOS 14 widget for my app. The part of widget is working, but I want to create an Native integration for updating my widget data. I started following this tutorial: https://reactnative.dev/docs/native-modules-ios It is running (no…
3
votes
1 answer

method is not a recognised objective c method

Lot of question are asked regarding the same but none of them solve my error. Here is my objective c file #import #import #import @interface…
3
votes
0 answers

Importing Swift ViewController to React Native

I'm trying to integrate this feature https://github.com/heinrisch/faceid-to-stl into my react native app. The repo is written in swift and I basically want to display the ViewController class into my react native app but I'm not sure how to. Wanted…
3
votes
1 answer

React Native App Crashing on Open from Push Notification, in Custom Broadcast Receiver

I just built a native module for emitting an event to React Native, the desired affect is taking push notifications that are sent through Braze, peeling the deep links from them in react native to route my application appropriately. This works…
3
votes
1 answer

React Native, Native Android Module add TextView within View

I am trying to make a Native Module for React Native on Android following that tutorial video but it seems incomplete and I cannot find a way to finish it. I am trying to display a Square, and within that square, a text passed as a prop. But I am…
Kevin Amiranoff
  • 13,440
  • 11
  • 59
  • 90
3
votes
2 answers

NativeModules not included in ReactNative

I just created a new application with create-react-native-app and I detached it to be able to make a native module. Then, I created SensorManagerPackage.java next to MainApplication.java containing my package. And then created a module satisfying…
2
votes
0 answers

How to insert a third-party package into an Expo Native Module

I'm starting to build a native library for Expo Native Modules that integrates with an SDK which integrates with a Smart credit card payment terminal, and this SDK exposes various functions to communicate with the hardware of the device. My question…
2
votes
2 answers

React Native: "Cannot find native module" error

In my React Native app, I'm trying to add the expo-mail-composer package using this guide. I use react-native@0.64.0, I added "install-expo-modules": "^0.2.8", then "expo-mail-composer": "~11.3.0", When I try to import the package with import * as…
2
votes
0 answers

How to send data to JavaScript in events listening from Java using Native Modules?

I'm developing a React Native application with Expo Bare Workflow, in which the app is being applied to an android credit card machine. When making a payment, it is possible to hear the events that happen in the payment process (insert credit card,…
1
2
3
9 10