I don't get the result of my promise despite using await
My function looks like this:async function getPlaceForecast(lat, long) {//var response;var day5forecast = 'http://api.openweathermap.org/data/2.5/forecast?lat='+ lat +'&lon='+ long +'&appid='+...
View ArticleReact native TypeError: Network request failed with fetch()
I'm using React native for developing an android application. With this fetch request I'm getting the error TypeError: network request failed:fetch('https://pixabay.com/api/?key=MY_KEY&q='+...
View ArticleHow to preview files inside an app component using react-native
I'm trying to preview files inside my component. Currently I'm using react-native-file-viewer, which can't open the files inside the component and takes up the whole screen. Is there any way to achieve...
View ArticleProblem receiving compressed (zlib/pako) data in Android / React Native
I've an ExpressJS endpoint that send me an object list's json compressed with pako library (https://github.com/nodeca/pako). This endpoint is consumed by a website client with axios and now I'm writing...
View ArticleWarning: ToastAndroid is not supported on this platform. error with react native
I am getting this error on react native IOS, - node_modules/expo/build/logs/LogSerialization.js:166:14 in _captureConsoleStackTrace- node_modules/expo/build/logs/LogSerialization.js:41:24 in...
View ArticleGeneratedAppGlideModuleImpl is implemented incorrectly. If you've manually...
I am working on react-native project and trying to integrate custom camera features by using an android code. For that, I have added glide library in my project. But after this integration my app is...
View ArticleIs there a React Native solution for integrating digital persona finger print...
I am working on a react-native project for data capturing which requires me to capture finger prints with digital persona finger print scanner. But I couldn't get a solution yet. Help me with this...
View Articlereact-native picker styling custom font
I'm using the Picker component which I have successfully customised within my styles.xml file in res/values/styles.xml:<resources><style name="AppTheme"...
View Articleerror: package com.android.annotations does not exist
I have the following classimport com.android.annotations.NonNullByDefault;@NonNullByDefaultpublic final class Log { ...}and here is my build.gradle file (some parts omitted)apply plugin:...
View ArticleProblem running React Native code on gennymotion emulator
"Couldn't start project on Android: could not install smartsocket listener: cannot bind to 127.0.0.1:5037: Only one usage of each socket address (protocol/network address/port) is normally permitted....
View ArticleDoes react-native optimize JavaScript code?
I read a guide on compilers. They have many optimization techniques like removing redundant code or removing unused variables and none used methods.But script languages like javascript don't have...
View ArticleWhy app is not opening on some android devices in react native project
I have apk release from react native project, it opens and works fine on some android emulators like Nexus 6 (Edited) API 22 - android 5.1), and never open on another like (Galaxy Nexus API 29 -...
View ArticleStyling React Native Picker
I'm attempting to style the text color of the items in a React Native picker. I've only been working in iOS so far, but if I could find a cross-platform solution that'd be awesome. I've tried the...
View ArticleIs it possible to capture finger prints using android phone scanner and save...
I am developing a react-native project for data capturing of farmers and I need to get their finger prints as well. Can I achieve this with the devices' scanner and how..
View ArticleReact Native Developer Menu on Huawei Mate 20 Pro
How to open react-native developer menu on Huawei Mate 20 Pro (connected via USB)?I run app by react-native run-androidShaking and this is not working: adb shell input keyevent 82Also i did:adb reverse...
View ArticlePassing useState update function to child causes undefined function error
Using expo and react-native I have created a screen called MainStateScreen this screen essentially has two direct children called OptionsComponent and NavigationButton. OptionsComponent has multiple...
View ArticleWill react native work without Google Services on Huawei phone?
Soon new Huawei phones will stop supporting Google Play and Google Mobile Services. Huawei is preparing its own ecosystem called HMS...
View ArticleReact native can't debug while adding .aar file
I have a React Native ("react-native": "0.62.2", with androidx enabled) project with a simple Android Library .aar. All works fine in debug mode and release mode.While adding a new .aar file to my...
View Article{"error": {"extra": -2147483648, "what": 1}} error while playing .mpd dash...
I have used react-native-video to play DRM content with .mpd extension. But it is giving me an error {"error": {"extra": -2147483648, "what": 1}}My video-player is like : onBack={this.goBack}...
View ArticleReact native Keyboard pushes Bottomsheet out of screen / to top
I am struggling with this issue now for over three weeks.I am using the package osdnk/react-native-reanimated-bottom-sheet and I want to use textinputs inside the bottomsheet. The problem appears when...
View Article