Questions tagged [native-module]

105 questions
0
votes
1 answer

Is anybody pass Uint8Array to native module in React Native. I haveError Malformed calls from JS

I try to pass ByteArray to Java Wrapper of my native module, but get error: Error: Exception in HostFunction: Malformed calls from JS: field sizes are…
0
votes
0 answers

Create React Native module which Works on both Expo and Natively

So basically, the title says it all. I want to create a React Native Module(Library) which can be used in Expo Projects or Native ones. Is this possible?
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
1 answer

React Native Script TelephonyManager not working

Here is my NativScript code for android package com.chetti; // replace com.your-app-name with your app’s name import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import…
Sky Sakthi
  • 402
  • 1
  • 4
  • 12
0
votes
1 answer

Get Contact React Native

I want to make a screen page that can be navigated in the contact list on my phone. so I made a native module for get contact, It worked but for android 10 and below. For android 11 he can't run. The function I created can't get contact data.I've…
zainal abidin
  • 363
  • 1
  • 3
  • 12
0
votes
1 answer

React Native Native Module for Proximity

I'm trying to make native module for react native to listen proximity sensor as many open source packages are not supported now. I tried with React Native documentation for IOS but I don't know obj-c and I don't have enough time to learn all this…
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
0 answers

Native module cannot be null. React Native iOS

Hello Everyone, I am trying to run React Native Project in iOS it's throwing the following issue. I am using React Native 0.60.4 . I am not able to understand which Native Module is null. Can anyone please help me out on this. I have been trying…
Shariq
  • 83
  • 2
  • 13
0
votes
0 answers

Invariant violation: RN native module is not available

I developed a library for React-Native using native modules in RN48, and is being manually linked to a project in RN59 and is working fine. But when i upgraded the peer dependency of the library to RN62 and auto-linked…
0
votes
1 answer

electron-forge --template=typescript-webpack cannot compile sqlite3

Using a package that leverages sqlite3. It looks like sqlite3 is not being recompiled properly. searched around and saw people recommending better-sqlite3. This would require me to have to port the sqlite3 code (no db.serialize equivalent). Is there…
paragbaxi
  • 3,965
  • 8
  • 44
  • 58
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
1 answer

How can i call a function in React native when onDestroy method is called in Android Studio?

I want to save my last visited screen by the user in Async Storage before the user exits the application. As there is no lifecycle event in react-native to look for an app being closed, I want to trigger a function in react-native when OnDestroy…
user11587840
0
votes
1 answer

How to check wifi status on change from Off to on

i want to use service in react-native using native modules ,if Wifi connectivity change from off to on just show toast that connection change
0
votes
1 answer

Titanium TiCollectionView not compiling on device

I am using - ti.CollectionView version 3.0.1 - Ti SDK 7.5.0 - iOS version 12.2 On simulator everything compiles nicely and the module works perfectly But compiling to the device renders the following error: [ERROR] ** BUILD FAILED ** [ERROR] The…
0
votes
0 answers

EXC_BAD_ACCESS when get value of static NSString varible in class inheritit RCTEventEmitter

I am building react native using native module. In the javascript side, I want to create native module on iOS for listener event and call some method from javascript side. I have a static NSDictionary variable in Objective C. But when I get value…