Relative Content

Tag Archive for javascriptreactjsreact-native

React-Native Expo API Call Not Working in Android

I am using react native expo to develop an app that can upload images to an external API. When I run it on web it works, but when I use an android phone or an iphone, the API call doesn’t work and I get the following log error:
LOG {“error”: “invalid_client”, “error_description”: “Bad client credentials”}

Nearest letter from an alphabet array for navigation in reactjs

I have one country list array object sorted based on key value where keys are alphabets. I have one section of all alphabets list for navigation. Once user clicks on any alphabets letter content should scroll to that letter. Or if that key is not having value it should scroll to nearest key having value.

scrolling is not happening on the screen

import React, { useState } from ‘react’;
import { View, Text, TextInput, Button, ScrollView, StyleSheet, Alert } from ‘react-native’;
import axios from ‘axios’;
import AsyncStorage from ‘@react-native-async-storage/async-storage’;

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:checkDebugDuplicateClasses’

A failure occurred while executing com.android.build.gradle.internal.tasks.CheckDuplicatesRunnable
Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector found in modules jetified-imagepipeline-base-2.5.0-runtime (com.facebook.fresco:imagepipeline-base:2.5.0) and jetified-stetho-2.0.0-runtime (com.facebook.fresco:stetho:2.0.0)
Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector$DumpInfo found in modules jetified-imagepipeline-base-2.5.0-runtime (com.facebook.fresco:imagepipeline-base:2.5.0) and jetified-stetho-2.0.0-runtime (com.facebook.fresco:stetho:2.0.0)
Duplicate class com.facebook.imagepipeline.cache.CountingMemoryCacheInspector$DumpInfoEntry found in modules jetified-imagepipeline-base-2.5.0-runtime (com.facebook.fresco:imagepipeline-base:2.5.0) and jetified-stetho-2.0.0-runtime (com.facebook.fresco:stetho:2.0.0)
Duplicate class com.google.common.util.concurrent.ListenableFuture found in modules jetified-guava-26.0-android (com.google.guava:guava:26.0-android) and jetified-listenablefuture-1.0 (com.google.guava:listenablefuture:1.0)