Questions tagged [react-android]

102 questions
33
votes
1 answer

Fetch returns promise instead of actual data even after using 'then'

I am making a simple fetch call in my component, which looks like this var x = fetch(SOME_URL, SOME_POST_DATA) .then((response) => response.json()) .then((responseJSON) => {return responseJSON}); …
Abhay Jain
  • 433
  • 2
  • 5
  • 11
13
votes
3 answers

Calling a Android Native UI component method from React native Js code

I have created a CustomView SignatureView.java which extends LinearLayout for capturing signature in Android Native. And created SignatureCapturePackage.java and SignatureCaptureViewManager.java public class SignatureCaptureMainView extends…
John
  • 8,846
  • 8
  • 50
  • 85
9
votes
0 answers

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 itemVisiblePercentThreshold parameter to 100 which I assumed will…
8
votes
2 answers

React Native Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0

after installing some packages like react-native-safe-area-context or react-native-screen, I always have this problem: can't run the app when I run yarn android: > Configure project :react-native-async-storage_async-storage Subproject…
Rayen Khaldi
  • 81
  • 1
  • 1
  • 4
8
votes
7 answers

Metro Bundler has encountered an internal error, please check your terminal error output for more details

after checkout when i say react-native run-android im getting below error. Metro Bundler has encountered an internal error, please check your terminal error output for more details below is package.json in my project. { "name": "NCAPRNRedux", …
SameerShaik
  • 488
  • 2
  • 10
  • 22
8
votes
3 answers

how to get device Id in react native android?

I am trying to get device id from android device. There are several links and packages available to get device id but very few are usable in case of Android. Below are links i had tried already with no results: Link1:…
YAM
  • 474
  • 2
  • 7
  • 14
6
votes
1 answer

UnableToResolveError : unable to resolve module `merge` from Libraries/ART/React Native ART.js

I am new to React-native. I am stuck with this error : UnableToResolveError : unable to resolve module merge from Libraries/ART/ReactNativeART.js dependencies I have used are : "dependencies": { "apsl-react-native-button": "^3.0.2", …
Deep Shah
  • 1,334
  • 3
  • 20
  • 41
5
votes
3 answers

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 have mentioned the type of icon specifically. I…
5
votes
1 answer

Getting this Error: .android/repositories.cfg could not be loaded

File /Users/MyName/.android/repositories.cfg could not be loaded. FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring project ':app'. Could not resolve all dependencies for configuration ':app:_debugApk'. A…
Lavaraju
  • 2,614
  • 7
  • 29
  • 49
4
votes
0 answers

Could not find com.facebook.react:react-android

I'm trying to update the sdk of an app in react native and I'm running into a lot of problems. The last one is this and I don't know what to do: Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find…
Juan Pablo
  • 81
  • 1
4
votes
1 answer

React native app crashes for first time when downloaded from playstore when you have google referral receiver in your manifest

We have built an application and recently we have added com.google.android.gms.analytics.CampaignTrackingReceiver the default receiver in the manifest to auto capture the install sources medium etc. We have a strange issue here. Every time we…
4
votes
2 answers

Hiding specific tabs on react navigation bottomTabBarNavigation

Imagine I have this structure for my tab bar: const TabBarRoute = { Home: HomeStack, Orders: OrdersStack, Trending: TrendingStack, TopSelling: TopSellingStack } I want to show only three tabs (Orders, Trending, TopSelling) in my…
4
votes
4 answers

React native development server returned response error code :500

The application is installed in the emulator. But it is not starting. Emulator points me out this error. At the same time server gives following errors. error: bundling failed: TypeError: Cannot read property 'throwIfClosureRequired' of undefined…
Sajith
  • 713
  • 6
  • 21
3
votes
0 answers

FlashList rerendering on state change is very slow even for only 100 items

We are displaying product cards in a list, we tried flatlist, recyclerlistview and finally flashlist from shopify, although the scroll performance has improved but its not smooth on all devices. What we noticed is The FlashList is rendering all…
3
votes
4 answers

Deep linking using react native expo?

How to get deep linking url using react native expo? I tried as per Expo documentation https://docs.expo.io/versions/latest/guides/linking.html#handling-urls-in-your-app using scheme but it is not working for android. app.json => { "expo": { …
Aishwarya
  • 31
  • 1
  • 1
  • 4
1
2 3 4 5 6 7