Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
358 votes
38 answers
493k views

Hide header in stack navigator React navigation

I'm trying to switch screens using both stack and tab navigator. const MainNavigation = StackNavigator({ otp: { screen: OTPlogin }, otpverify: { screen: OTPverification}, ...
Avijit Dutta's user avatar
  • 3,811
351 votes
12 answers
183k views

What is the difference between Expo and React Native?

From the Expo website Expo lets web developers build truly native apps that work across both iOS and Android by writing them once in just JavaScript. Isn't this what React Native does? What's the ...
Aurora's user avatar
  • 3,543
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
136 votes
9 answers
240k views

How can I clean (reset cache) of React Native using Expo. Not sure if it is cache issue

I am building a simple React Native app with create-react-native-app using only react-navigation and base-64(base 64 encode/decode) as dependencies. Over time starting the app became slower and now ...
Nedko Dimitrov's user avatar
108 votes
17 answers
57k views

Xcode 15: Unable to boot the Simulator

I was able to run iOS simulator fine with Xcode 14 and my Mac recently updated the latest version of Xcode which is 15 then I'm no longer able to boot a device from its new simulator. I did try many ...
tmhao2005's user avatar
  • 16.9k
107 votes
16 answers
159k views

React Native iOS and Android folders not present

I'm new to react native, and I've been having some trouble understanding the folder structure of the app which should supposedly be present in the project folder on creation. Basically, when creating ...
Simon Eliasson's user avatar
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
85 votes
39 answers
107k views

Network Response Time Out Error (create-react-native-app) (expo)

I am trying to run create-react-native-app on expo app in android. Firstly ,I created the project by writing command create-react-native-app test then I executed npm start then scanned the qr ...
YaSh Chaudhary's user avatar
76 votes
14 answers
45k views

Expo: Change default IOS simulator

I am new in expo and react-native Whenever i run the app from IOS simulator (inside expo) it always boots up the IphoneX. If i need to change the simulator,I have to open it through Xcode, is there ...
Hena Shiekh's user avatar
74 votes
10 answers
117k views

Implement pull to refresh FlatList

please help me out to implement pull to refresh on my app, I'm kinda new to react native, thanks. I don't know how to handle onRefresh and refreshing. class HomeScreen extends Component { state = { ...
petros's user avatar
  • 821
68 votes
0 answers
48k views

What is the difference between Expo CLI and React Native CLI? [duplicate]

React Native provides two way to create Project. First: npm install -g expo-cli Second: npm install -g react-native-cli so what is different between them and what should be used if we create ...
Jitendra Kumar's user avatar
66 votes
12 answers
194k views

How do you format a number to currency when using React native Expo?

How do I take a number like 10000 and have it output as $10,000.00? I even had a problem with String.format(...) with a Not a function error. I followed numerous articles, all incomplete and none ...
Choco's user avatar
  • 1,388
59 votes
20 answers
136k views

'expo' is not recognized as an internal or external command

After running npm install -g expo-cli and successfully installing the packages globally, expo is still not recognized as an internal or external command. Does anyone know how I might get around this ...
jf___'s user avatar
  • 601
58 votes
3 answers
84k views

Invariant Violation: requireNativeComponent: "RNCSafeAreaProvider" was not found in the UIManager [closed]

Implementing React Navigate in the project installing the package npm install @react-navigation/native @react-navigation/stack shows the following error. Can anyone help me with this issue?
da coconut's user avatar
57 votes
14 answers
56k views

Getting Error: "Use process(css).then(cb) to work with async plugins"

screens/HomeScreen.js: Use process(css).then(cb) to work with async plugins Here is my HomeScreen.js import { View, Text } from 'react-native' import React from 'react' export default function ...
Muhammad Umair Zahid's user avatar
54 votes
20 answers
66k views

NativeModule: AsyncStorage is null, with @RNC/AsyncStorage

I'm working on a React Native project created with Expo. I've been using regular old AsyncStorage, importing from react-native, and all has been well. In looking up how to mock AsyncStorage for ...
Jonathan Tuzman's user avatar
53 votes
11 answers
66k views

How to reduce the size of an expo/react-native app on Android

I am developing a small dictionary app by using react native with expo. As I am compiling to Apk file. The size goes up to 30mb and after having installed on a device, it goes to 80mb. Is this ...
Sras's user avatar
  • 2,118
52 votes
15 answers
54k views

EXPO: Unable to resolve module ‘./debugger

After a reload my app has stopped loading. a I have tried on both emulators and 2 real devives, android and ios. The error is: Error: Unable to resolve module ./debugger-ui/debuggerWorker.d9da4ed7 ...
Serdar Mustafa's user avatar
50 votes
9 answers
37k views

expo + react-native: There was a problem sending log messages

I am building a react-native app that I recently moved to expo. The app seems to display the expected screen, but before it completes, I am receiving the following error message: console.error: "...
user1790300's user avatar
  • 1,785
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
50 votes
17 answers
47k views

Calling locally hosted server from Expo App

I am creating a react-native app and one of the components I have created contains a property which is populated through data coming from an http request. Right now I am hosting the server from my ...
iSeeJay's user avatar
  • 823
50 votes
10 answers
168k views

React Native: Generate .apk and .ipa using Expo

I'm trying to generate a .ipa and a .apk file for my React Native app using Expo & Create React Native App. I successfully built the app and was able to get it to run on both an iOS & an ...
clems36's user avatar
  • 932
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
47 votes
9 answers
24k views

EAS Build iOS Failure: Authentication with Apple Developer Portal failed [closed]

I'm using EAS to build my Expo app, and today I started getting this error when attempting to run an iOS build, either local or on EAS servers. I'm thinking it's an issue with Apple servers, so I'm ...
Kollin Murphy's user avatar
44 votes
3 answers
32k views

App Store - Help answering "Missing Compliance" (using Expo + Firebase)

I'm publishing my app to App Store and I have doubts regarding the "Missing Compliance" step. Here's some info about the app: I used Expo (Managed workflow). That means I don't have direct ...
sandrina-p's user avatar
  • 4,044
42 votes
6 answers
62k views

How can I upload a photo with Expo?

I'm making an app with Expo and want to let the user take a photo or pick one from their camera roll and upload it to my server. How do I do this?
ide's user avatar
  • 20.6k
42 votes
6 answers
16k views

'Stack.Navigator' cannot be used as a JSX component

There is a type issue using react navigation, when use Stack.Navigation or Stack.Group from createNativeStackNavigator The issue saids that the types dont match with JSX.element at the end of the ...
Jerome Bravo's user avatar
41 votes
10 answers
55k views

How to define entry point for react native app

I'm just getting started with react native and have created a base app with create-react-native-app. I did some restructuring and made a few new folders and renamed the App.js to Home.js. I modified ...
TemporaryFix's user avatar
  • 2,156
41 votes
7 answers
66k views

How to reduce Android APK size in react-native?

I am working on react native project , but whenever i am building an Apk file , it give me Apk of 47MB. I tried every documentation which i found useful on google but nothing works for me, Is there ...
Parshant Dutta's user avatar
40 votes
15 answers
67k views

React Native Expo change default LAN IP

I've got virtual box installed. And when I look at the host > LAN > ip address is exp://192.168.56.1:19000. How can I change it without disable the network? because it's my virtualbox ip and my ...
ssuhat's user avatar
  • 7,597
40 votes
11 answers
49k views

How to fix Something went wrong installing the "sharp" module and Cannot find module '../build/Release/sharp.node' in expo

I tried to install expo after I executed the command exp start but I got: Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp.node'. How can I fix ...
zaki tutu's user avatar
  • 655
36 votes
13 answers
11k views

Android Material and appcompat Manifest merger failed in react-native or ExpoKit

I updated 'android.support:appcompat-v7' to 28.0.0. But it brought an error from the build. Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com....
hong developer's user avatar
36 votes
5 answers
10k views

RTL is forced in RTL devices

The new version of React Native has issued support for RTL devices: https://facebook.github.io/react-native/blog/2016/08/19/right-to-left-support-for-react-native-apps.html However, it seems that in ...
atlanteh's user avatar
  • 5,785
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
34 votes
4 answers
81k views

Change navigation header background color

Struggling to understand how to change the navigation header bar background color. I'm Using react navigation and Expo to build my app. backgroundColor does not seem to do anything. Any idea how to ...
arled's user avatar
  • 2,690
34 votes
3 answers
86k views

How to remove unwanted expo modules

When creating an react native app with expo, expo installs many module that i don't need. Is there a way to remove these unwanted modules like barcode reader google sign in and google maps. thanks
mcnk's user avatar
  • 1,980
34 votes
2 answers
16k views

Not using the Expo fork of react-native

I'm using expo with react native. All is fine, but i get this warning and the app takes a long time in loading : [exp] Warning: Not using the Expo fork of react-native. See https://docs.expo.io/. ...
Sihem Hcine's user avatar
  • 1,119
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
32 votes
16 answers
63k views

Failed to install expo package with error: yarnpkg exited with non-zero code: 1 yarnpkg exited with non-zero code: 1

Im currently trying to update my Expo SDK from 36.0.0 to atleast 37.0.0 with the command expo update however im getting the error: × Failed to install expo package with error: yarnpkg exited with ...
HCx3's user avatar
  • 451
32 votes
4 answers
55k views

How to build expo apk using eas build

After updating expo it no longer supports building apk files using expo build:android -t apk and instead advices to using eas builds using the command eas build -p android --profile preview but it ...
coolDog's user avatar
  • 556
32 votes
7 answers
27k views

How to use import with absolute paths with Expo and React Native?

I'm trying to use absolute import paths instead of relative paths with Expo and React Native. I looked on the expo docs and couldn't find an answer... Searching for the subject in react community I ...
Eduardo Leal's user avatar
32 votes
6 answers
61k views

How to build Expo APK local

Is it possible to build the APK of an expo app locally? The doc says: If you haven’t used exp before, the first thing you’ll need to do is login with your Expo account using exp login. I tried ...
Piu130's user avatar
  • 1,387
32 votes
4 answers
30k views

Scroll through the view when keyboard is open (React Native / Expo)

I am having a hard time using a KeyboardAvoidingView on my Expo app. I would like to meet the following requirements: When the keyboard opens, the view should scroll up so that the user always sees ...
Arnaud's user avatar
  • 5,044
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
31 votes
8 answers
32k views

crypto.getRandomValues() not supported

I'm getting this error with npm [email protected] when I try to generate a QR code with react-native-qrcode-generator I'm using react-native with an expo managed workflow. And the thing is ...
jsnid00's user avatar
  • 646
31 votes
1 answer
4k views

expo.io's BackgroundFetch is not running the defined task

I am currently developing an app for iOS with expo sdk-version 32. I have to call a REST service periodically from my app. In order to do that I tried to utilize the new BackgroundFetch API. Here is ...
Struemmeck's user avatar
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
11 answers
74k views

How to upgrade expo sdk to specific version

I want to upgrade my expo sdk version step by step as recommended in the documentation. These are the instructions: Update to the latest version of Expo CLI: npm i -g expo-cli. [email protected] or ...
Natalia's user avatar
  • 423
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
29 votes
4 answers
16k views

expo for ios - 'Unable to determine runtime bundle when booting device

Trying to start an expo project on a Macbook (Mid-2012) and the following error occured: *** Assertion failure in -SimDevice _onBootstrapQueue_bootWithOptions:error:, SimDevice.m:2057 2021-12-25 21:21:...
John Fisher's user avatar

1
2 3 4 5
302