Questions tagged [expo]

Expo is an open-source and free platform that lets web developers build truly native apps that work across both iOS and Android by writing them once in just JavaScript. Use the Expo tag on questions about developing Expo projects and using the Expo development tools like XDE and exp.

Expo lets web developers build truly native and Web applications that work across iOS, Android and Web by writing them once in just JavaScript. It's an open source, free toolchain built on top of React Native.

Resources

14725 questions
343
votes
38 answers

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}, userVerified: { screen: TabNavigator({ …
Avijit Dutta
  • 3,651
  • 3
  • 13
  • 16
337
votes
11 answers

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 difference?
Aurora
  • 3,395
  • 2
  • 10
  • 3
196
votes
19 answers

Error Appstore connect : Missing Purpose String in Info.plist File

I've submitted my app for review to the App Store Connect. Although the app is still under review, I've received an email to inform me that I have to fix an error. Here is the content of the message: Dear Developer, We identified one or more…
John doe
  • 3,680
  • 7
  • 31
  • 65
148
votes
7 answers

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 distributionUrl in the Gradle-wrapper. Having…
Ben Kemp
  • 1,501
  • 2
  • 7
  • 9
119
votes
6 answers

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 sometimes it is getting stuck(waiting for about…
Nedko Dimitrov
  • 4,350
  • 3
  • 28
  • 30
98
votes
16 answers

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 the project with npm, I get some starting files…
Simon Eliasson
  • 1,135
  • 2
  • 9
  • 16
91
votes
3 answers

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
  • 4,780
  • 5
  • 20
  • 41
81
votes
38 answers

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 code from expo app. But after scanning QR code , I am…
YaSh Chaudhary
  • 2,605
  • 8
  • 37
  • 74
71
votes
10 answers

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 = { refreshing: false } _renderItem = ({ item })…
petros
  • 791
  • 1
  • 6
  • 10
70
votes
17 answers

npm ci can only install packages with an existing package-lock.json or npm-shrinkwrap.json with lockfileVersion >= 1

This is the issue that I am facing when running the command npm ci to install dependencies in my GitHub Action file. I am working on an expo managed app and using GitHub Actions as a CI for triggering builds whenever I push my code to developmemt…
sakshya73
  • 5,570
  • 5
  • 22
  • 41
68
votes
0 answers

What is the difference between Expo CLI and React Native CLI?

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 react native app?
Jitendra Suthar
  • 2,111
  • 2
  • 16
  • 22
66
votes
12 answers

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 any way we can change the default simulator ?
Hena Shiekh
  • 803
  • 3
  • 9
  • 13
59
votes
12 answers

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 working. I don't need full internationalization, just…
Choco
  • 1,189
  • 1
  • 14
  • 29
53
votes
3 answers

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

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
  • 809
  • 2
  • 9
  • 11
53
votes
20 answers

'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 issue using windows 10, or what to do in terms of…
jf___
  • 541
  • 1
  • 4
  • 3
1
2 3
99 100