Questions tagged [react-native-native-module]

137 questions
0
votes
1 answer

Native Modules Bridges React Native

I have an issue when i try to bridge an Native Modules. I have a function in Java , the function will calculate the progress when i write a byte , i have a while loop at there. The problem is whenever i return the value inside of loop , the loop is…
0
votes
0 answers

Can I access data stored in React Native's async storage from native modules of ios

Generally we created custom keyboard like https://developer.apple.com/documentation/uikit/keyboards_and_input/creating_a_custom_keyboard and we need to store data in async storage and fetch also. its works in android perfectly after adding…
0
votes
0 answers

Reduce time for calling native module methods in react-native application

I implemented a native module which navigates to a camera activity. But while calling the camera from nativeModules, it takes 1500-2000ms to open(excluding ui updation in camera). The native module class that extends ReactContextBaseJavaModule is…
0
votes
1 answer

How to use 3rd party library in react native expo

Im total noob in RN and Expo. I'v generated new project expo init test, then cd test, then npm install --save react-native-ble-plx and started expo by npm start. In my code I added following lines: import { BleManager } from…
Andrei V
  • 1,468
  • 3
  • 17
  • 32
0
votes
3 answers

My custom native module is not present inside NativeModules object

So, i wanted to create a native module which will detect, if the app is running on emulator/simulator or an actual device. Everything works fine on android, but i'm facing issue on iOS. I have create a AbcModule.h and a AbcModule.m file #import…
0
votes
1 answer

Making React Native iOS Native Module to use Garmin SDK

So I'am trying to implement the Garmin iOS SDK in a native module to connect a Garmin watch to my react native app. I have done all what the docs say for creating a native module and I'am able to initialize and start scanning (this does not throw…
0
votes
1 answer

Can not add Android Native Module to React Native project

I have a task where I need to add a Native functionality to the React Native project for Android devices. I have followed this [tutorial][1], which is pretty straight-forward. But unfortunately, I still can not access my Native functionality from JS…
0
votes
1 answer

React native RecordScreen Native Module is null

I want to use RecordScreen NativeModule in my react native app. import {NativeModules} from 'react-native' console.log(NativeModules) // This is empty {} console.log(NativeModules.RecordScreen) // This is null Currently I'm testing on android…
John Stuart
  • 950
  • 5
  • 11
  • 28
0
votes
1 answer

Display red screen error in react native from a native module

I implemented a native module and I would like to display an error for a developer using the redbox error screen from the native module. This error will inform about obsolete values. Does anyone know, how to display this kind of screen with a custom…
Piotr Badura
  • 1,574
  • 1
  • 13
  • 17
0
votes
1 answer

How to show progress bar in react native for a long running android native task?

I have a react native app and I'm using an android native module to run a long task. While this task is going on, I would like to show a progress bar in my react native screen while this task is going on. How do i do this? I'm currently only able to…
Jeff P Chacko
  • 4,908
  • 4
  • 24
  • 32
0
votes
1 answer

React-native Native Modules Official Guide not working

I've tried following this guide 10 times today: https://reactnative.dev/docs/native-modules-android I just tried on a clean project following the guidelines exactly. No matter what I do I always get null is not an object (evaluating…
0
votes
1 answer

Create own dependency in react native for iOS

I'm creating first react-native dependency for both android and iOS. I have done coding part for android but now I'm stuck in iOS. Where to write code for my library and how to test.
0
votes
1 answer

At what point are Native Modules compiled in a React Native app (with Expo)?

Are the underlying Native Modules compiled when they are installed from NPM, or are they compiled when the App is run (i.e. bundled)? I don't think it's likely that they are compiled when they are installed from NPM as that would require you to have…
0
votes
1 answer

Objective C - Call Method defined from a Macro

I'm trying to call a Method from Objective-C that has been defined using a Macro which wraps a Swift function. I'm getting the compilation error No visible @interface for 'NearbyMessages' declares the selector '__rct_export__disconnect' in Xcode…
0
votes
2 answers

React Native Module, Cocoapod file not found

I am building a module for React Native, as a part of this, there is some native iOS code that is wrapped in a cocoapod. I have this working fine, and I can install the cocoapod and see the native classes from the RN side no problem. One of the…