Questions tagged [create-react-native-app]
194 questions
2
votes
0 answers
How to specified compileSdkVersion to build.gradle
As soon as I opened a project created through 'Create React Native App' with VS Code, the following error occurred:
The supplied phased action failed with an exception. A problem occurred configuring project ':expo'. compileSdkVersion is not…

Mason
- 69
- 7
2
votes
2 answers
React-Native -Elements Avatar not rendering and showing only gray background even though the image path is correct
I am trying to render the avatar in my listItem in my React_Native Application but the image is not rendering even though my image URI path is correct and it's only giving the gray background.
Here is my code
{props.dishes.map((l, i) =>…

Badal S
- 507
- 1
- 3
- 20
2
votes
1 answer
Stripe payment with apple pay token using React native
I have installed package react-native-payments in react native project, and i have token from that response, using that token i wants to do payment with stripe, is that any api available? to use apple pay token with stripe.
basically we have to…

Jinkalr
- 21
- 5
2
votes
1 answer
Ejected expo react native app requires expo?
I created a RN with create-react-native-app, and I have now decided to eject. It didn't work initially, and required some packages to be installed (@babel/...), but now, it complains that Module 'expo' does not exist in the Haste module map.
Why…

Alex
- 2,270
- 3
- 33
- 65
2
votes
0 answers
Jest test fails at very first import statement (unexpected identifier) in create-react-native-app project
New to using jest and running into immediate test failure on an existing create-react-native-app project when trying to run npm test even though the code appears to work fine when run in the android studio AVD. Error in question looks like
➜ npm…

lampShadesDrifter
- 3,925
- 8
- 40
- 102
2
votes
1 answer
wrapItem(...).trimStart in Expo and React native
Today I create a new project with create-react-native-app and after installing dependencies CRNA says to start your project with expo start, after running this command all thing seems good and a chrome open page localhost:19002 but after a minute…

MBehtemam
- 7,865
- 15
- 66
- 108
2
votes
0 answers
CRNA build:android issues
I am trying to build an APK file for my CRNA project, using expo. The first issue is, it tries to build iOS every time. Why is it building iOS when I used exp build:android?
Second, iOS only succeeds in building occasionally. It usually hangs at…

Nodeocrat
- 816
- 2
- 14
- 29
2
votes
4 answers
Metro Bundler failed to start. (code: EACCES)
I am running ubuntu 18.04
I get this when trying to start my expo server with exp start (I have also tried exp start -c, exp start -c --tunnel, exp start --tunnel).
I get:
felix:~/job/App (dev) $ exp start
[11:50:59] Using project at…

mrfr
- 1,724
- 2
- 23
- 44
2
votes
0 answers
not a system font error, might be related to async?
So I got the "Roboto-Black" is not a system font, try putting through Expo.Font.loadAsync() error. but I've read in other posts that some people are having similar problems and the solution is by using await/promise.
However, Im not sure how to do…

Ray Jonathan
- 1,285
- 1
- 12
- 21
2
votes
3 answers
Live Reload, Hot Reload, and Remote Debugging all unavailable
Why is Live Reload, Hot Reload, and Remote Debugger all unavailable? I've tried
Reloading JS Bundle
Restarting the simulator
Restarting packager
Restarting packager and clearing cache
Resetting the simulator
Restarting the computer
Prior to this,…

blueether
- 3,666
- 4
- 26
- 32
2
votes
3 answers
create-react-native-app doesn't create android/ subdirectory
I noticed that create-react-native-app isn't creating an android/ subdirectory in my project. Is this normal behavior? I'm using Node 8.1.0, NPM 4.6.1. Here's my directory structure:
I need to edit the AndroidManifest.xml file, which is supposed to…

James Ko
- 32,215
- 30
- 128
- 239
2
votes
1 answer
Why is the React Native Packager not creating a new bundle when changes are saved?
On Mac, I created a React Native project via create-react-native-app and then ejected the app. Then I ran npm run ios, which is an alias for react-native run-ios. At that point, I can see it start up in the simulator and the packager opens in a new…

zeckdude
- 15,877
- 43
- 139
- 187
2
votes
1 answer
Social Sharing with CRNA (Create React Native App)
How can I share images and text using CRNA (create react native app) on facebook/twitter?
I went through the documentation, but I could not find anything.
Any leads here is appreciated.

ThinkGeek
- 4,749
- 13
- 44
- 91
2
votes
0 answers
JEST Test Failed - TypeError: Cannot read property 'fetch' of undefined in CRNA Expo App
I am not unit testing a fetch function so even libraries like jest-fetch-mock don't help get rid of the error. Neither does axios nor isomorphic-fetch
Running yarn test yields this.
My App.test.js simply doesn't test fetch:
import React from…

Fatah
- 2,184
- 4
- 18
- 39
2
votes
3 answers
React Native OSX CRNA Compilation of µWebSockets has failed C++11 compiler
Got this issue after ejecting from Expo (with ExpoKit). Had a working environment before ejecting. npm run ios will run with this issue repeating over and over:
Origin: Worker (PID 6336) 12:18:06: [Error] Error: getaddrinfo
ENOTFOUND lcalhost…

Thomas Hagström
- 4,371
- 1
- 21
- 27