Questions tagged [react-native-native-module]
137 questions
1
vote
0 answers
"Utils.startApp()" not working in android version 10 & 11
I'm trying to start app from kill state. "Utils.startApp()" this method works perfectly fine in android version 7 or 8 but its not working in 10 & 11.
I think in android 10 or 11 needs permission but i don't know "What's the permission name".

Parkash Kumar Mishra
- 41
- 3
1
vote
0 answers
How to use React Native Package in a TS based library?
I'm creating a custom library for React Native. I initiated the library using react-native-create-library. The library has not any native code. It's just written in typescript. At some places, I need to use react-native packages like…

Muhammad Afaq Riaz
- 11
- 1
1
vote
2 answers
React Native Navigation: cant click in navigation
I'm trying to use react navigation. But when I click on the button to navigate, nothing happens. I'm new to React Native.
App.js:
function App() {
const Stack = createStackNavigator();
return (
…

mark
- 59
- 1
- 6
1
vote
1 answer
ReactNative NativeModules using Interface callback not resolving promise
Im trying to use a native Android library that implements Interface callbacks. I have implemented the bridge, and by running this code:
for (const i in payloads) {
console.log("i", i)
const payload = payloads[i].payload
…

Robertko
- 21
- 3
1
vote
0 answers
Create react native module from android activity class
how can create react native module from android activity class , I need android activity in react native as UI module but i cant create module I have to access activity class directly that not good for me

Ali Kaviani
- 56
- 7
1
vote
1 answer
Text String must be rendered within Text Component
I know this question has been asked many times and i have already referred to those but my use case is little different. I need to allow user to draw on an ImageBackground so i created my own native view for it. I do not face this issue on ios. It…

Go Fudge YourSelves
- 139
- 1
- 2
- 10
1
vote
0 answers
Let Android Module know that some permissions are already granted on React-native class
I'm using react-native-permissions package to request some permissions in my app. When I start it , the app shows the modal to accept the requested permissions after that I call a method that requires ACCESS_FINE_LOCATION permission accepted. So…

sclick
- 11
- 1
1
vote
1 answer
React Native Android Native Module Works Well on Debug but Doesn't Work on Release
I've created an Android Native Module in my React Native App to get User Installed Apps List. it works well on Debug but doesn't work on Release.
*Note : I've also tried to use a npm package called react-native-android-installed-apps, but it
doesn't…

Riadi Almasyariqi
- 11
- 4
1
vote
2 answers
Document picker is not working in react native
I am currently facing issue with react native document picker in my react native app .
I attached screenshot for your referenced.
RNDocumentPicker -Native module is not available.

sonali bandal
- 21
- 1
- 4
1
vote
1 answer
How to extend RCTEventEmitter while overriding methodQueue getter?
I'm trying to create a React Native native module in Swift that needs to be run on the main thread and which sends events to JS. This works fine (as instructed in RN docs):
@objc(MyModule)
class MyModule: NSObject {
@objc
func methodQueue() ->…

Sampo
- 4,308
- 6
- 35
- 51
1
vote
0 answers
Send custom data types to React Native from Native iOS
I'm writing a Native Module for React Native and need to return a value in a custom data type to React Native. To return a value I use the Promise method like this:
// .swift
@objc
func getCardType(
_ cardNumber: NSString,
resolver resolve:…

Wiingaard
- 4,150
- 4
- 35
- 67
1
vote
0 answers
Using native modules with React native and swift
I'm just getting started with React native and made some code with Swift and my question is, do I need to unlink the project and rebuild everytime i change a piece of code within my swift file ? Because now I made some changes inside the swift file…

Elon
- 21
- 2
1
vote
0 answers
How do I add an existing library as dependent on my new library? REACT NATIVE
I am creating a new library for React Native and I would like to add an existing library that uses native modules as a dependent (React Native Video) to use my library, but I am not able to do that.
I've seen some posts from GitHub and StackOverFlow…

Guilherme Trivilin
- 807
- 7
- 7
1
vote
0 answers
React-native custom native module couldn't search header search path
I am building a wrapper SDK in react-native. However, I am new to react-native and facing following issues:
I have created a library using react-native-create-library npm package. While compiling iOS module it gives error that React-native bridge…

user1866609
- 41
- 3
1
vote
2 answers
How to fix 'Semicolon before method body is ignored' error on Xcode when using RCT_EXPORT_METHOD syntax?
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 Native Module for navigation to call Android…

Maddie R.
- 9
- 3