Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
148 votes
7 answers
116k views

Cannot add task 'wrapper' as a task with that name already exists

When installing 'react-native init AwesomeProject' I get this error when I run react-native run-android: Could not determine java version from '11.0.1'. A quick google suggests I need to update the ...
Ben Kemp's user avatar
  • 1,511
91 votes
3 answers
49k views

Warning : Failed child context type: Invalid child context 'virtualizedCell.cellKey' of type 'number' supplied to 'CellRenderer', expected 'string'

I updgraded from react 16.2 -> 16.3-alpha-1 and react-native 0.52->0.54 and I get the warning above in the simulator.
dhj's user avatar
  • 4,805
50 votes
10 answers
33k views

React-native bundling failure. ERROR MESSAGE: "While trying to resolve module 'idb'..... Indeed none of these files exist":

ERROR MESSAGE IN QUESTION: While trying to resolve module idb from file C:\Users\OG\Desktop\programming\react_native\mealstogo\MealsToGo2\node_modules\@firebase\app\dist\esm\index.esm2017.js, the ...
JohnyClash's user avatar
47 votes
12 answers
22k views

react native downloading javascript bundle 100% stuck

when I am trying to execute npm start it works fine, but when i try to run my application by expo the process goes till 100% and after that nothing happens. I am not getting what is exact issue over ...
Deepak's user avatar
  • 482
45 votes
38 answers
157k views

Can't load expo app: Something went wrong

I've created an expo app with exp init MyApp command and started it by running exp start in MyApp directory. Then I'm scanning barcode which was printed in console with expo mobile app on android ...
humkins's user avatar
  • 10.4k
35 votes
6 answers
47k views

Re-render component when navigating the stack with React Navigation

I am currently using react-navigation to do stack- and tab- navigation. Is it possible to re-render a component every time the user navigates to specific screens? I want to make sure to rerun the ...
James's user avatar
  • 3,757
33 votes
4 answers
19k views

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 thinner in portrait view. Most of the ...
Blak's user avatar
  • 525
31 votes
5 answers
29k views

Error: NativeViewGestureHandler must be used as a descendant of GestureHandlerRootView

I've installed GestureHandler (npx expo install react-native-gesture-handler) and also imported it into my App.tsx file on line 3 with polyfills import 'react-native-gesture-handler'; was doing it by ...
insider's user avatar
  • 1,585
30 votes
6 answers
96k views

React Native - navigation issue "undefined is not an object (this.props.navigation.navigate)"

Im following this tutorial https://reactnavigation.org/docs/intro/ and im running into a bit of issues. Im using the Expo Client app to render my app every time and not a simulator/emulator. my ...
user3676224's user avatar
30 votes
1 answer
782 views

React Native - iOS - Local image invisible (works on android)

I'm mapping TouchableOpacity with an Image nested inside of it. It works great on Android but on iOS the image is invisible. There is still a 75x75 touchable opacity that I can tap but the image is ...
thecoolestguyever123's user avatar
28 votes
8 answers
50k views

React navigation 5 hide tab bar from stack navigator

I wanted to know how to hide the bottom tab bar from a specific screen inside my stack navigator that is nested on a material bottom tab bar This is my code for my stack navigator import React from '...
Andrew's user avatar
  • 612
28 votes
2 answers
3k views

Why does my React Native app build successfully despite TypeScript compiler error?

I've recently started using TypeScript with Expo. I've done all the linter/formatter integrations like typescript-eslint so I can catch most of the errors during coding. To check if the code compiles, ...
anar's user avatar
  • 585
26 votes
7 answers
54k views

How to fix npm start "cannot determine native SDK version" error?

I'm trying to run my react native code from a github repository on ubuntu by using npm start and expo. When I run npm start I get the follow error: "Cannot determine which native SDK version your ...
Joppe De Jonghe's user avatar
22 votes
1 answer
1k views

React native (expo) web view Error net::ERR_CACHE_MISS

I am using react native(expo) and try to use web view package And i am getting this warning in console and didn't see anything on mobile screen. "sdkVersion": "36.0.0", "expo": "~36.0.0", ...
user avatar
21 votes
3 answers
2k views

React Native EXPO Apple upload fail [closed]

I created the app through Expo. I uploaded the ipa through the Application Loader, and it was rejected as the message below. What is the problem? This bundle is invalid - The Info.plist file for /...
Kihyun An's user avatar
  • 251
20 votes
1 answer
13k views

How do I create a diagonal border in React Native?

I'm working on building a React Native app based on designs from our designer. The design has several places where there are buttons or shapes with one diagonal line (see the following example). I'...
user2719094's user avatar
  • 1,732
20 votes
1 answer
48k views

Jest failed to parse a file. This happens e.g. when your code or its dependencies use non-standard JavaScript syntax

I'm using ignite to create an expo react native app. I'm using this guide https://ignitecookbook.com/docs/recipes/GeneratorComponentTests to create component test files Here is the first test file ...
monty_lennie's user avatar
  • 3,161
19 votes
8 answers
10k views

Expo Camera only opening once with React Navigation

I set the Expo camera to open on the middle tab with react navigation. However, the camera only opens when I click on that tab the first time. If I switch off of it and go back it's just a black ...
borderal's user avatar
  • 211
19 votes
2 answers
8k views

React Native Expo StackNavigator overlaps Notification bar

I am trying to implement navigation bar for my React Native Expo app. Here is a problem: "dependencies": { "expo": "^18.0.3", "react": "16.0.0-alpha.12", "react-native": "^0.45.1", "...
Andrei's user avatar
  • 43.9k
18 votes
3 answers
49k views

Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `TextInput`, expected `string`

in react-native, I have: Warning: Failed prop type: Invalid prop `value` of type `number` supplied to `TextInput`, expected `string`. I have a postalCode and it is numeric value. I have set the ...
Dimitri Kopriwa's user avatar
18 votes
2 answers
39k views

Cannot access State inside Function

I am using React Native for my application, and at one point, I noticed that I have to type this.state.bar[this.state.foo][SOME_NUMBER] every time, within my components. This works perfectly fine, ...
Mrigank Pawagi's user avatar
18 votes
1 answer
7k views

What does "api.cache(true)" do in Expo's babel.config.js?

This line appears in the default Expo babel.config.js, but I can't find any reference anywhere to what it does. Is there anyone who knows what this does? module.exports = function(api) { api.cache(...
Slbox's user avatar
  • 12k
17 votes
0 answers
13k views

Linking requires a build-time setting `scheme` in the project's Expo config (app.config.js or app.json) for production apps [closed]

Linking requires a build-time setting scheme in the project's Expo config (app.config.js or app.json) for production apps, if it's left blank, your app may crash. The scheme does not apply to ...
noone's user avatar
  • 223
16 votes
3 answers
23k views

Disable Debugging in Expo For React Native App

So I've opened up my react-native app in Expo today (using the iOS simulator) and I am creating by what looks like a debugging overlay. Screenshot here: I don't need this and it's blocking some of ...
Jack Robson's user avatar
  • 2,262
16 votes
4 answers
6k views

react native (expo) load markdown files

I'm having some troubles loading markdown files (.md) into my react native (non-detached expo project). Found this awesome package that allows me to render it. But can't figure out how to load the ...
Norfeldt's user avatar
  • 9,220
16 votes
2 answers
3k views

Is it possible to hide the "BugReporting extraData" in React Native? (Using Expo)

Every time I open a React Native app with Expo, I get this massive message in the console with meta data about the app, that doesn't actually do much to help me debug. Especially because it's the same ...
Jackson Holiday Wheeler's user avatar
14 votes
7 answers
11k views

npm install -g expo-cli fails with "EPERM: operation not permitted, unlink '...\adb.exe'

I receive an error when running $ npm install -g expo-cli I have tried reinstalling the node modules as An Administrator but the same error occurs. Environment: Windows 10, Node Version: 10.15.3, ...
Griseld Gerveni's user avatar
14 votes
3 answers
20k views

class was expected (declaration of 'com.google.android.gms.location.FusedLocationProviderClient') in react native

This was working fine earlier. Possible Unhandled Promise Rejection (id: 0): Error: Encountered an exception while calling native method: Exception occurred while executing exported method ...
Gourav Mishra's user avatar
14 votes
5 answers
15k views

React Native local images load slowly

I'm building an app using React Native with Expo. Everything works fine except the images, they load correctly but it takes about 2 seconds to load, and it's weird because all the images are local ...
Simone Romani's user avatar
14 votes
1 answer
670 views

Error : Cannot read property fetch. Using jest-expo with react native

TypeError: Cannot read property 'fetch' of undefined at node_modules/whatwg-fetch/fetch.js:4:8 at Object.<anonymous> (node_modules/whatwg-fetch/fetch.js:466:3) at Object.<anonymous> ...
Vyas Reddy's user avatar
  • 1,256
13 votes
2 answers
7k views

I can't run my expo project since I updated expo-sdk

When I try to run my expo project I get this message: D:\React\myproject>npm start > start > expo start Starting project at D:\React\myproject Unable to find expo in this project - have you run yarn ...
Diogo Pinheiro's user avatar
13 votes
3 answers
16k views

Promise allSettled is not a function

I planned updating some Promise.all to Promise.allSettled in my React Native - Expo Project but the function does not Exist. i checked all Versions and everything fits but i still cant use the ...
jovan's user avatar
  • 337
13 votes
4 answers
15k views

View or open PDF files stored locally Expo React Native

Is there a solution to view or open PDF Files using Expo (without Expo eject)? It's not necessary to open file inside App, it's can be a local filemanager. What i tried: Linking does not open ...
user avatar
13 votes
4 answers
3k views

Load custom native component in react native using expo kit

Im trying to load a custom Android WebView to be able to upload files using html file inputs (by default Android webview wont work with input file). Im using this code, the only difference is that im ...
Renato Probst's user avatar
13 votes
2 answers
16k views

Remove expo from react native

I've had so many troubles with the tool, I seriously have been debugging expo morethan the app itself. How might I remove expo completely from CRNA? I would like to use CRNA and it's debugging tools ...
Youssef Ell's user avatar
12 votes
5 answers
13k views

How to fix react-native error after updating expo to 50.0

When I run npm run ios in terminal, I get the below error error: node_modules/expo-router/entry.js: [BABEL]: expo-router/babel is deprecated in favor of babel-preset-expo in SDK 50 I tried to ...
Elvin Shahsuvarli's user avatar
12 votes
3 answers
7k views

Expo on iOS is constantly refreshing my React Native app on MacOS, caused by Dropbox / iCloud

I'm building a simple React Native app and using the Expo iOS app to run it. But Expo is constantly refreshing my app, making it unusable / untestable. It refreshes every few seconds, sometimes ...
Luke Knepper's user avatar
12 votes
5 answers
12k views

React Native "The expo SDK requires Expo to run. .... this code is not running on Expo."

I am coding with React Native. I don't see that when I first create react-native app for check running. When I implements my code see that. My purpose is generate apk. app.json build.gradle index.js (...
Mert Ekinci's user avatar
12 votes
3 answers
6k views

React Native - Disable Password AutoFill Option on iOS Keyboard

In React Native, how do you disable or prevent the keyboard from displaying the Password Autofill accessory view option? There doesn't seem to be an property for TextInput that handles disabling this ...
David's user avatar
  • 121
12 votes
2 answers
4k views

Expo - Network Response Time Out Error (create-react-native-app) (Windows 10)

I have the exact same problem as here: Network Response Time Out Error (create-react-native-app) (expo). Every time I try to scan the QR code from my phone on LAN, I get the network response timeout ...
Adam.V's user avatar
  • 789
12 votes
0 answers
950 views

React Native warnings after upgrading to SDK 49 Expo

Hi i'm getting those warnings after upgrading my react native app to SDK 49 "transform" style array value is deprecated. Use space-separated string functions, e.g., "scaleX(2) rotateX(...
Valerio Fusco's user avatar
11 votes
8 answers
41k views

Value for title can not be cast from ReadablenativeMap to string

Consider: InsertDataToServer = () => { const { pinValue1 } = this.state; const { pinValue2 } = this.state; const { pinValue3 } = this.state; const { pinValue4 } = this.state; var String_3 ...
Atul Tiwari's user avatar
11 votes
2 answers
10k views

React Navigation 5 - How to navigate from headerRight?

i still trying to understand this react navigation 5.0. Fyi i'm using expo, and right now no problem when navigate from one page to other, problem is when i put navigation for the headerRight. i put ...
abet's user avatar
  • 219
11 votes
2 answers
15k views

React Native Expo Router - Hiding the Stack header on home screen

I'm using expo-router in my React Native Expo app containing 2 screens, app/home.js and app/details.js. There is a Link on home.js that navigates to details.js screen. Right now both screens have the ...
Athena Wisdom's user avatar
11 votes
7 answers
17k views

Expo React Native App crashing on android

Ever since I started programming in React Native with Expo, I have been using an ios physical device together with Expo app. I never had any major issues. Now i wanted to start fixing any bugs on ...
Mireia's user avatar
  • 323
11 votes
7 answers
15k views

Change navigation bar on android with RN with expo?

I started using React Native with Expo and I encountered my first problem. I want to change the color of the navigation bar on Android. Unfortunately, I can't figure out how to do that. I tried to ...
Wojciech Borowski's user avatar
11 votes
2 answers
6k views

How to implement Video and/or Audio calling in React Native Expo application

I am building a react native application using Expo and i need to add audio calling and video calling functionalities, however it seems that i cant use react-native-webrtc (Link here) without ejecting ...
Abdeen's user avatar
  • 932
11 votes
2 answers
5k views

Attempted import error: 'shouldUseActivityState' is not exported from 'react-native-screens'

I'm getting this error : C:/Users/Mobile/node_modules/@react-navigation/drawer/lib/module/views/ResourceSavingScene.js Attempted import error: 'shouldUseActivityState' is not exported from 'react-...
Notation's user avatar
  • 325
11 votes
0 answers
3k views

Is there a way to open instagram app on 'add page' from my expo app (react native solution)?

I am new to react-native/expo, so maybe because of it, I can't find any solution. I want to open 'Instagram app' from my new app. But the Instagram should be opened on 'add' page, where the user can ...
andrey's user avatar
  • 367
10 votes
8 answers
28k views

React-Native File 'expo-module-scripsts/tsconfig.base' not found

my problem is like this // @generated by expo-module-scripts { "extends": "expo-module-scripts/tsconfig.base", "compilerOptions": { "outDir": "./...
Abdullah's user avatar
  • 117

1
2 3 4 5
58