Category "react-native"

react-native Android Mapbox build problem

I am trying to configure for Android a react-native app which uses Mapbox and works perfectly in iOS. The react-native version is 0.66.2, the Android Studio ver

Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

I am trying to build my react-native project for android and getting the following error on Windows but its working on Mac. $ react-native run-android info Runn

How to specify (optional) default props with TypeScript for stateless, functional React components?

I'm trying to create a stateless React component with optional props and defaultProps in Typescript (for a React Native project). This is trivial with vanilla J

How to differentiate between double tap and single tap on react native?

I need to perform different action on single and double tap on a view. On double tap I need to like the image just like Instagram double tap experience. On sing

Data Saver Mode - React Native

I build an app using react native v0.60. Receive a complain from user when they set their phone in Data Saver mode the app is cannot be used. The user need to e

How to fix cocoapods trunk cdn issue?

I am trying to setup a react-native app from scratch. During install, I get the following error Analyzing dependencies Fetching podspec for DoubleConversion fr

React Native Expo: How to protect secret keys like Google Maps key?

We can't store the secret keys in the app code as they can be easily extracted by hackers. One way is to get them from a backend service but my app works withou

TypeError: undefined is not an object (evaluating '_expoConstants.Constants.statusBarHeight')

I am trying to use Constants.statusBarHeight to separate the view from the status bar in react-native, i installed Constants using expo install expo-constants b

Camera Preview in Expo is Distorted

I'm using Camera that comes from expo package and I'm having trouble with camera preview distortion. The preview makes images appear wider in landscape view and

EventEmitter.removeListener('keyboardDidHide', ...): Method has been deprecated

Please help me, I don't know what this warning is. I'm trying to render a chat room with chat messages between two users from Cloud Firestore database. This war

How to change default component name while importing in react native?

I want to import a component named "Create" while importing I want to change its name. But I cannot change the component name as I export the "Create" component

Error in running npx react-native CLI in Android emulator

Getting error while running npx react-native CLI in Android emulator command: npx react-native run-android error: BUILD FAILED in 3s at makeError (D:\TestPr

How to create local notification in react native and android

I am trying to create a local notification in android using react-native. My application is completely local, so I don't want to use GCM or FCM. I saw this ques

Why "Watchman crawl failed" error in react-native immediately after updating to macOS catalina?

Trying to run react-native run-ios or build RN project from xcode, as soon as metro bundler starts, this error appears in the terminal: Loading dependency grap

react native - requiring unknown module

I have been trying to load local image files in ListView. It does work when I hard code: return <Image source={require('./public/image1.png')} style={{wid

react-native-image-picker getting reverse height and width

I am using react-native-image-picker library to capture image code as follow: launchImageLibrary({ includeExtra: false, mediaType: "photo", selectionLi

How to create a custom hook that recives dependencies?

I'm making a custom hook that have a toogle when some state change. You should be able to pass any state in an array. import { useState, useEffect } from 'rea

'react-native' is not recognized as an internal or external command, operable program or batch file

I recently started with react-native. I install it using the tutorial on the Facebook site and everything works well for a day or two until this message comes u

Auth.currentAuthenticatedUser not loading name and family name attributes (and others) from Cognito

I'm using the Auth.currentAuthenticatedUser method to retrieve the attributes recorded for the logged user from AWS Cognito - but only basic atributes are showi

Getting "ld: symbol(s) not found for architecture x86_64 clang" on one of nearly identicals machines

I've been on this for two days, searched every corner of the internet and couldn't find any solutions. Currently, when I try to build React-Native Xcode project