106 questions
1
vote
0
answers
69
views
Adding new ReactActivity to run another js bundle
I'm trying to make my React Native Android app to have another Activity, beside MainActivity, be able to run another js bundle. I managed to achieve that with this implementation:
import android.app....
0
votes
1
answer
75
views
Running react native 0.76.7 without making MainApplication extend ReactApplication
In our app the main application is responsible for other features too, not just ReactActivity specific things. Because of the above reason I don't want to make my MainApplication extend ...
5
votes
0
answers
2k
views
Could not find com.facebook.react:react-android:0.73.4. Required by: project :app project
I am trying to update my react native version because I'm still on version 69 and want to be on the latest, 73.4
I have also updated my gradle to 8.2.2 to stay up with the times, and think I'm close, ...
0
votes
1
answer
2k
views
Facing problem as Android build failed in a react native expo app due to unknown error
I'm facing this issue while i'm trying to create build for my react native expo app,I have removed not usesful packages and dependecies from my app.
I have used the command
"npx eas build --...
1
vote
1
answer
2k
views
Cookies are not working in react native web view for android
<WebView
incognito={true}
javaScriptEnabled={true}
thirdPartyCookiesEnabled={true}
sharedCookiesEnabled={true}
source={{
uri: url,
...
1
vote
0
answers
1k
views
Facing Fatal Error: SoLoader.doLoadLibraryBySoName
Facing non-reproducible error of soloader on released version. Getting following logs on crashlytics ..
react-native: 0.64.4
Fatal Exception: java.lang.UnsatisfiedLinkError: couldn't find DSO to load: ...
1
vote
0
answers
278
views
How do I load asset in android?
I am new to react-native and I need to build an react-native module for the purpose of using TensorFlow Lite to STT and TTS.
I created the react-native module with the create-react-native-library ...
0
votes
1
answer
638
views
App getting Crashed while installing it for the first time in React Native
ERROR TypeError: Restricted in strict mode, js engine: hermes is getting thrown when trying to import Axios for network request in react native application. The error gets removed when i'm trying to ...
-2
votes
2
answers
257
views
React Native: Variable state not updated on first click
I am new in react-native and i am working on an app.
The below code is a simple react-native app which has a custom component with custom events.
But the problem is the variable state is not updated ...
1
vote
0
answers
455
views
How can create react native build and share to my client, I am trying to share the apk-debug.apk file but its showing run react-native start error
I am building a react native app [ for some reasons I am not using expo for this project ] ..
So I built apk and it does created successful built one for debug and one for release.
In my phone I ...
2
votes
3
answers
1k
views
AsyncStorage not working on release but working on debug (React Native)
"@react-native-async-storage/async-storage": "1.15.5",
"react": "17.0.1",
"react-native": "0.64.2",
Here's how I use my Async
fetch('',{
....
0
votes
1
answer
3k
views
How to convert GMT time using new Date() to AM/PM in react-native?
I am working in a react-native project and using moment library. I am getting issue while converting time (in GMT 5:30 IST) to AM/PM. It adds 5:30 hours in local current time.
eg. From database time 3:...
0
votes
1
answer
5k
views
create-react-native-app confusion is not creating App.js file
I am trying to create a React-native application environment using
create-react-native-app confusion
but it is not creating all the files. It is only creating package.json and yarn.lock inside the ...
1
vote
3
answers
176
views
Positioning a image over text
I'm trying to position an image over text in a view. Im trying to position it like this:
Im just having a bit of trouble centering the image in the view. Here is the code:
<View style={styles....
2
votes
1
answer
2k
views
React native based SDK
I am trying to create a react based SDK, (i.e) I will be having an Android/iOS package which will be the entry point for an App and will be using react code for using existing business logic. I am ...
2
votes
1
answer
435
views
React-Native Image rendering on different android devices based on their DPI
I am new to react-native and trying to render images on different android device based on the DPI. Need Help with it.
Code for getting DPI of device is -
import {PixelRatio} from 'react-native';
...
1
vote
2
answers
2k
views
Not listing the files using rn fetch blob in react native [Error: Attempt to get length of null array]
I was trying to list all the files in a folder using rn fetch blob in react native. When i tried to list it i am getting an error saying
[Error: Attempt to get length of null array]
here is the below ...
0
votes
1
answer
205
views
Hide buttons behind Images
Hi I am new to React Native.
I have created an Image that when pressed on expands other buttons with animated view. However with these code the buttons are on top of the image before I press it and I ...
0
votes
1
answer
917
views
React-Native Interact with website like click button, select checkbox etc. on webpage
I want to open website in React-Native app with below requirements:
Open website from app
Select appropriate record from list
Click on Edit button
Edit appropriate details
Click on Save button
Above ...
1
vote
0
answers
483
views
how to fix " Could not find com.android.tools.build:gradle:3.4.1
I'm new in react native, when i wanted to run my first project, i got this error,
how to fix it, thanks for your attentions
" Could not find com.android.tools.build:gradle:3.4.1.
Searched in the ...
2
votes
0
answers
360
views
Not able to track lead sources from campaign links in react native
I am using this npm for analytics events. All the events are tracking as expected.
My issue is with respect to capturing the lead source. Most of the sources are coming as (direct) or (not set).
I ...
3
votes
2
answers
2k
views
React native reload bundle programmatically
I want to develop a react native app. But js files aren't on my local machine. I will download bundle from remote server.
Below code works for now. But how can I reload js bundle from file path?
...
1
vote
2
answers
2k
views
React-Native How to show alert after an async function is complete?
I have the following code which is not working to show an alert after my async function ends.
{
new BaseService().request(
serviceURL,
"POST",
headerParams,
bodyParams,
...
5
votes
3
answers
13k
views
Icons from React-native-elements/fontAwesome are not showing
I'm setting up icons for drawer items and for headerLeft.But icons are not apprearing in my android app.I am using react-native-elements library to use icons in my code. icon type is font-awesome. i ...
9
votes
0
answers
3k
views
React Native FlatList onViewableItemsChanged Returning Incorrect set of Items
I am trying to use onViewableItemsChanged event to detect the items of my FlatList that are currently displayed on screen.
In my ViewabilityConfig (Code is provided below), I set the ...