Questions tagged [react-native-bridge]

The React Native Bridge allows the native code and the javascript code to talk to each other. Without the bridge, there is no way for the native code to send any information to the JavaScript code and vice versa

43 questions
0
votes
0 answers

ReactNative: Android native bridge - EditText not editable or clickable

I am creating a bridge from Kotlin to JS (RN), so I created a simple view manager for my edittext. class DummyUI(var context: ReactApplicationContext) : SimpleViewManager() { lateinit var editText: EditText override fun getName():…
vanste25
  • 1,754
  • 14
  • 39
0
votes
0 answers

Is there a way to check if a custom event can be emitted in Android

From my Android native module I'm sending events to JavaScript. As suggested here I created a sendEvent method and everything is working properly. I use it like this ... sendEvent(reactContext, "MyEventName", params); However I would like to know…
Gerardo
  • 168
  • 2
  • 8
0
votes
0 answers

Bridging java native module with React Native

I'm currently using a java native sdk which lets my device scan BLE devices. the thing is i'm able to communicate the startBLEScan function from React Native button. but the @onBLEDeviceReachabilityEvent is never being called here is my code . …
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

onActivityResult called immediately on startActivityForResult

I am trying to get results from native activity in React Native Module. When I called startActivityForResult from my React Native Module, onActivityResult is called immediately even though the activity shows up but RESULT_CANCELED is immediately…
0
votes
2 answers

AVPlayer.addPeriodicTimeObserver equivalent on AVAudioPlayerNode

I'am refactoring a react-native package that using AVPlayer, into AVAudioEngine and AVAudioPlayerNode. But I confuse how to turn AVPlayer.addPeriodicTimeObserver using AVAudioPlayerNode. The idea is i need to get time data when music is playing,…
0
votes
1 answer

is it possible to replace existing react native app with a new one?

I have a react native project on 0. 59 version and I tried to do major updates to 0. 60. But it seems to be impossible I can not run the app on the emulator. So I had this idea of creating an empty project and to transfer my code on it. Has someone…
All Glenn
  • 41
  • 7
0
votes
1 answer

Main app can't reference framework used in React Native Library

I need some advice about building react native library that using framework. I'm trying to build one using this library. My react native library contains these…
chuongle
  • 29
  • 4
0
votes
1 answer

How use notification icon from React Native app to some RNBridge?

I created a bridge to React Native to work with Oracle-Responsys SDK. The bridge is working pretty well, but the only thing that I'm stuck is in how can I set the notifications icons from my react native app to this bridge. Following the…
0
votes
0 answers

Does react-native creates the corresponding android activities in android after compilation

I was going through the react-native philosophy and I came to know that when you compile the react-native app, it compiles the JS code into corresponding native app. Like in case of android it will generate the java code. My question is, does it…
0
votes
0 answers

Subclassing multiple classes in IOS

I am a novice in Swift and IOS right now. I am making a React Native app that uses IOS native code written in Swift. These methods in order to be linked to React native need an implementation file. I have already patched few methods from my Swift…
Divye Shah
  • 747
  • 1
  • 11
  • 24
0
votes
1 answer

Open Viewcontroller(no Stroyboard) from swift class method- React native

I'm trying to load Initialviewcontroller, from swift class My swift class (ChatManager.swift) import Foundation; import UIKit; @objc(ChatManager) class ChatManager: NSObject { @objc func addEvent(name: String, location: String, date:…
Kartiikeya
  • 2,358
  • 7
  • 33
  • 68
-1
votes
1 answer

React Native ads (Adcolony) - Expo

I've used this npm library which is a react native bridge for adcolony ads SDK , i was supposed to display advertise in my application . When i imported and used mentioned library in my react native application i got following error: This is how i…
1 2
3