How to create a pod/aar using react native npm package
I have already created an SDK using react native which has some component & APIs which client can use for different purposes. I want to create SDK's pod & AAR file as well using that...
View Article"Unable to load script from assets 'index.android.bundle'. Make sure..."
Seems Metro Bundler is not loading... it is opening and closing and I can see nothing is running inside before closing. For this reason emulator is not running the app.I am getting the error after...
View ArticleCan't get setBackgroundMessageHandler to work
In react-native-firebase v6, I can't get setBackgroundMessageHandler to work in my app. Notifications are received just fine but the handler is not executed.I have done it like in the guide to no...
View ArticleLayout design in react native
I am trying to design below layout in react native.I am not able to draw horizontal line as shown above. Some how I have drawn but margin on the right is not being appliedCode<View style={{...
View ArticleWhat is the best way to call a GraphQL API in React Native
I'm using GraphQL API for my react native project. I would like to know some questions about GraphQL since I'm beginner of using it. I found two methods of fetching data from GraphQL to react native...
View ArticleCan't resolve symbol android.support.v4.util.Pools in...
I am working on react-native project.After I update my modules by running 'npm install',I cannot find class 'Pools' which located in 'android.support.v4.util' in 'react-native-gesture-handler'.Why Is...
View Articlereact native navigator.geolocation.getCurrentPosition not working
I am using a real android device (version 5.1)I am able to determine my position using react-native-maps (correct blue point position on map inside my app ) + I am able use google maps app and go to my...
View ArticleHow to add resource-id to android in react-native
I was trying to use firebase TestLab but it seems that it can only target resource-id. I had my elements like this:<Input {...props} testID="usernameIput" /> But it seems that the testID is not...
View ArticleDynamically fill some data in android/app/build.gradle (React Native ap)
For my react-native application I am using react-native-app-auth library.I need to fill this info in build.gradle file, for android:android { defaultConfig { manifestPlaceholders = [...
View ArticleStop loading Webview in react native
I have react native project on Android platform. I have a Webview loaded from url. When user click any url, i want navigate to screen in my app and webview will stop loading. So in my...
View ArticleCannot connect to Apollo GraphQL server on Android Release [react native]
httpURI = 'http://17.25.16.68:4000/graphql' //example const httpLink = createHttpLink({ uri: httpURI }); const client = new ApolloClient({ link:httpLink, cache: new InMemoryCache() }); The connection...
View ArticleApp crashes after calling setState in static method
After calling setState in navigationOptions the App crashes. This only happens on an Android device. Below my crashing code. import React, { Component } from 'react'; import { Button, View, Platform,...
View Articlereact native: check Android background activities setting
I want my application to check whether its background activity is enabled in the Android settings.Settings => Apps & notifications => Advanced => Apps background activities I'm aware about...
View Articlereact native build error: package android.support.annotation does not exist
I had to completely rewrite the question.I have a react native android app. When I built the apk file with ./gradlew assembleRelease -x bundleReleaseJsAndAssets, it went fine, but after that it stopped...
View ArticleHow to make sure JS Modules are loaded before sending message from...
In my react app the MainActivity(subclass of ReactActivity) is launched from the subclass of BroadcastReceiver. From the MainActivity::onCreate method a message to JS Module is emitted through JS...
View ArticleReact Native Web crashes with aws-amplify
I'm using aws-amplify in my app for iOS, Android and Web, but when I import aws-amplifyimport 'aws-amplify'; Android and iOS work fine but the web app crashes with the error message:Failed to compile...
View ArticleExpo app runs on ios and emulator but not on android device
Expo app will build and run correctly on ios simulator, ios device, and android emulator. but when I build an apk and run on an android device the app freezes after login and will not respond. I'm...
View ArticleAndroid, change string and reload activity
We have our api_host string set in a java file.For testing purpose, we want to be able to change the api_host at runtime through a ui (provide a textinput where you can edit the api_host variable)Also...
View Articleclean react native project immediately crashes on real android device debug mode
I have a strange problem with React Native. I have checked it with several versions of RN for example 0.55.0 to 0.61.2 and tried several solutions but none of them solved my problem. The problem is...
View ArticleCause of a OutOfMemoryError with React native Android
I'm developping an app with React native and my last version in release mode crashes after 20-30 seconds with the following generated logcat:02-19 23:52:10.777 32717-32717/? E/AndroidRuntime: FATAL...
View Article