Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
311 views

Is it possible to maintain the value of Java variables in a custom react native module when reloading the JS? I would like to maintain components in the below code for debugging purposes. It persists ...
Brien Crean's user avatar
  • 2,698
3 votes
0 answers
3k views

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 ...
fpang's user avatar
  • 31
0 votes
0 answers
80 views

So I am trying to use AutoCompleteTextView(for android) as a native module in react-native. I drew inspiration from https://github.com/nulrich/RCTAutoComplete. So in the above library the author ...
Amol Gupta's user avatar
  • 2,684
0 votes
1 answer
3k views

I want something like the following (that actually works...): import { NativeModules } from 'react-native'; import PushNotifications from '../../app/platform/PushNotificationSupport'; const mockRNA = ...
codecitrus's user avatar
0 votes
0 answers
547 views

In react native, I'm using NativeModules and RCTResponseSenderBlock to create a callback. Because the callback is specific to the function I declare in my bridge, I can't access it from the Extension ...
flipyouforreal's user avatar
1 vote
2 answers
265 views

I am integrating React Native to an existing iOS/Android Project. I am trying to make a native module to help with navigating to iOS screens from React Native screens. I was able to create my Android ...
Maddie R.'s user avatar
1 vote
1 answer
152 views

I just added this code on my home/index.js file if (Platform.OS === 'android') { Expo.Notifications.createChannelAndroidAsync('chat-messages', { name: 'Chat messages', sound: ...
Iván E. Sánchez's user avatar
1 vote
0 answers
316 views

I have created a react-native application, which on a button press will load an Android Native Module. When called, the native module will start an Android activity which makes use of the Presentation ...
Curtis Menmuir's user avatar
2 votes
0 answers
103 views

I followed the document and try to invoke ToastExample.show() from react native. But it always show error My code: public class CustomToastPackage implements ReactPackage { @Override public List<...
han yang's user avatar
0 votes
1 answer
2k views

When importing a react-native native module. There is an issue when importing the js from the project for example import RNModule from 'react-native-module'; However importing RNModule using native ...
814k31's user avatar
  • 105
5 votes
3 answers
3k views

I'm trying to build a react-native application with a some native UI components and some React components. I want a native ui component which takes a react component as a property, and renders it as a ...
maboesanman's user avatar
1 vote
2 answers
3k views

I want to create an ability in my react-native android app to send my user geolocation to the server for each period of time, even if he closed the app! so probably it means i have to run some thing ...
Iman Salehi's user avatar
2 votes
1 answer
4k views

I have a object employeeList which contains objects employee and then each employee object has a person object and address object in it and person and address both contain NSString properties and well ...
Yahoo's user avatar
  • 4,213
1 vote
0 answers
236 views

I am currently trying to import ReactNativeHeading into a Hello World Viro App for android and after following these instructions, all I get is undefined. The following code can be run in both App.js ...
LBBO's user avatar
  • 85
4 votes
1 answer
2k views

I'm very beginner at react-native and I want to create a native module so I followed the official documentation for doing that and in the Native Module Setup but I get confused in the third step where ...
Ahmed Salah's user avatar
  • 1,011
2 votes
0 answers
279 views

i created react-native-library for wrap MixPanel SDK but not working in IOS, just work in Android. When try import in android nativemodules can recognize my module "RNMixPanel" but every time when try ...
Ricardo Bejarano's user avatar
1 vote
3 answers
3k views

In my react native project ,I have implemented payment native sdk in android (that does not supported in react native).so i am tried to call native sdk with native modules.. i am able calling the ...
abdul sathar's user avatar
  • 2,396
3 votes
1 answer
865 views

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 ...
Kyle Erickson's user avatar
0 votes
1 answer
575 views

I wrote an android native module for a React Native app. I was wondering how would I package the module for private (i.e. my own apps or send them to someone to try) distribution ? The module ...
K.A.Q's user avatar
  • 519
0 votes
1 answer
589 views

I'm currently attempting to do the Ios version of this tutorial. The tutorial is brief introduction to using native modudles in react-native via react-native-create-bridge I should see a simple blue ...
VK1's user avatar
  • 1,736
0 votes
1 answer
2k views

I wan't to create a custom native module for my app only - so no lib. Following the docs it gives me an error: import com.facebook.react.bridge.ReactContextBaseJavaModule; Cannot resolve symbol '...
martn_st's user avatar
  • 2,636
2 votes
1 answer
5k views

I'm trying to implement an iCloudStorage in react-native (0.53.3) with native code. Right now I have the following: Header #import <React/RCTBridgeModule.h> #import <React/RCTEventEmitter.h&...
TimmNL's user avatar
  • 216
0 votes
1 answer
1k views

Hello friends i want to make my plugin in react native and i want to call my ios native module function from my react native js file so below is my code ios library code as below @implementation ...
Harshal Kalavadiya's user avatar
0 votes
0 answers
838 views

Hello friends i want to create library for native module call so below is my code Mylib is my library project in android package com.reactlibrary; import java.util.ArrayList; public class ...
Harshal Kalavadiya's user avatar
0 votes
2 answers
441 views

I'm developing an android native module in a react native app. I'm using JDBC to directly connect with a mysql database hosted on my pc. My Phone and pc are on same wifi network and as I'm trying to ...
phanom9797's user avatar
3 votes
1 answer
1k views

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 ...
Kevin Amiranoff's user avatar
2 votes
0 answers
421 views

I am following firebase set up tutorial for google sign in with android sdk and am making small react-native module for it available here asq-react-native-google-sign-in With android implementation, ...
Ilja's user avatar
  • 46.8k
1 vote
1 answer
1k views

I'm trying to make sense of an iOS native module whose code is generated by djinni. According to the React Native doc, you must include the RCT_EXPORT_MODULE() macro in your code. This working sample ...
user avatar
8 votes
1 answer
2k views

I'm building react-native app which has some native android modules in it. In MainApplication.java, protected List<ReactPackage> getPackages() { return Arrays.<ReactPackage>asList( ...
Harshitha Palihawadana's user avatar
1 vote
3 answers
2k views

I am following Native Module documentation for android: https://facebook.github.io/react-native/docs/native-modules-android.html#docsNav My package currently looks like this package com.myCompany....
Ilja's user avatar
  • 46.8k
1 vote
1 answer
2k views

I'm building a native UI component for Android that uses a view that extends a ReactRootView. On the constructor of my view (named SyncRootView) if I check the thread I get Thread curThread = Thread....
SudoPlz's user avatar
  • 23.7k
4 votes
3 answers
30k views

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-...
Z_z_Z's user avatar
  • 1,137
1 vote
0 answers
210 views

My Question is not duplicated as this question! my case is about AsyncTask not just about Runnable, and even so, I've 2 AsyncTask inside runnable that needed to handling! I'm new in Android, I've an ...
flix's user avatar
  • 1,983
0 votes
1 answer
119 views

This is the relevant portion of my code (imports, etc. not included) import Spotify from 'react-native-spotify'; let spotifyOptions = { "clientID": "69708bf2b35e4cc2b208fafa600ce9a9", "...
Shrey Gupta's user avatar
3 votes
2 answers
2k views

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 ...
Jeremie's user avatar
  • 379
0 votes
1 answer
674 views

I'm interested in wrapping some C++ libraries as react-native modules but I'm hitting a bit of a conceptual wall. Very new to this stuff so bear with me! I want to wrap something like the ...
ramirezd42's user avatar
9 votes
1 answer
11k views

Regarding this question, I've been trying to get this done via native modules in Android. I've declared my Module at .../java/com/myproject/multiplecamerastream following the example at React Native ...
Unapedra's user avatar
  • 2,413
9 votes
1 answer
5k views

In React Native project I want to access the Presented Viewcontroller from iOS npm module. I'm able to access the rootviewcontroller of the RN project using the below code UIViewController *vc = [...
iOSGeeky's user avatar
  • 121
9 votes
1 answer
10k views

I'm creating a custom react-native module and I have this custom type in a swift file VideoTrimmer.swift typealias TrimCompletion = (Error?) -> () how do I import or reuse it in a file with ...
Serghei Ghidora's user avatar
8 votes
2 answers
5k views

It's clear to me that for react-native native modules we can use the @ReactMethod to export a method and call it from JSX, but how do we do the same thing in react-native native UI components? In the ...
SudoPlz's user avatar
  • 23.7k
1 vote
1 answer
514 views

I'm building a react-native native UI component: - (UIView *)view { return [[MyComponent alloc] initWithBridge:self.bridge]; } and I'm exposing props like this: RCT_EXPORT_VIEW_PROPERTY(prop1, ...
SudoPlz's user avatar
  • 23.7k
11 votes
3 answers
13k views

I am writing a react native app to get IOS and Android Battery status. I search through the net and found few libraries which can get battery level of the phone. https://github.com/robinpowered/...
Sameera Chathuranga's user avatar

1 2
3