Questions tagged [create-react-native-app]

194 questions
0
votes
2 answers

Loading dependency graph, done. error: bundling failed: Error: Unable to resolve module ./../../react-transform-hmr/lib/index.js

Getting the following error on running react native app in android emulator react-native run-android Loading dependency graph, done. error: bundling failed: Error: Unable to resolve module ./../../react-transform-hmr/lib/index.js from…
Gowthaman
  • 790
  • 1
  • 10
  • 29
0
votes
1 answer

Still cannot use `react-native link` after ejecting a Create React Native App

I started with a create-react-native app. Then, I wanted to add a dependency. So, I ran react-native link: `react-native link` can not be used in Create React Native App projects. If you need to include a library that relies on custom native code,…
plivesey
  • 2,337
  • 1
  • 16
  • 18
0
votes
1 answer

create react native app expo failed to connect running on emulator in same computer

I'm new to react native, I've used create-react-native-app command to generate a project, executed npm start to start the packager. Until now all is good, the packager is running on address 192.168.232.56:19000, it shows me the QR code and the menu,…
0
votes
1 answer

How to run react-native using application on Android (using CRNA)

I have this a simple app which was created using CRNA which runs fine on iOS but fails on Android. It seems to be related to the missing JSC on Android OS. I added the "android-jsc" (https://github.com/facebook/android-jsc) dep to the project but…
Rodrigo
  • 5,435
  • 5
  • 42
  • 78
0
votes
3 answers

No folders android and ios

Why after create-react-native-app I don't have a folder android and ios? Now I can't open this by react-native run-android and can't put for example android permissions. What is wrong?
github2017
  • 103
  • 1
  • 10
0
votes
1 answer

React Native - setState from array

I'm trying create-react-native-app for the first time and I want to change text on varying time intervals. But my code only gives me the last item of the array. import React from 'react'; import { Text } from 'react-native'; const blinkText = [ …
user8703143
  • 173
  • 1
  • 14
0
votes
1 answer

Dispatch using socket io

How can I change the state using socket? socket.js import {getNearbyUser} from '../routes/Search/modules/Search' export function socketAction(action,data){ if(action == 'login'){ socket.emit('login',data); } else if(action ==…
0
votes
1 answer

command npm run eject show error Eject failed with exit code 1

I can create react native project by typing command create-react-native-app myappname and then cd to the project use npm run eject choose a regular react native project before. But i meet the error recently, i can't figure it out why it happens like…
Morton
  • 5,380
  • 18
  • 63
  • 118
0
votes
1 answer

update react-native-maps to work with create-react-native-app

When I run create-react-native-app I'm getting a peer dependency for react-native-maps to use react-native@0.54. I need to be able to use react-native@0.55.2 and react@16.3.1 Presented below is the package.json file for react-native-maps. Notice…
DCR
  • 14,737
  • 12
  • 52
  • 115
0
votes
2 answers

dependencies with create-react-native-app

I'm getting a new list of errors as follows: npm ERR! peer dep missing: react@16.3.1, required by react-native@0.55.4 npm ERR! extraneous: websql@0.4.4 d:\atestbed\native-react\lecture4-contacts\node_modules\websql npm ERR! missing:…
DCR
  • 14,737
  • 12
  • 52
  • 115
0
votes
1 answer

Location request timed out in Get Current Location

I'm using create react native app to run this app but not yet ejected (I've backed up just in case). I've tried ejecting this project but the error still occurs. I already added the code below in the AndroidManifest.xml.
0
votes
1 answer

Why crna doesn't use the last versions of react and react-native?

In my package.json i have : "react": "16.3.0-alpha.1", "react-native": "0.54.0" Normally the current version of react is 16.3.0 without alpha and for react-native 0.55.0
drtapha
  • 539
  • 1
  • 7
  • 15
0
votes
2 answers

Expo and Vagrant

I am trying to build a react-native-app on a vagrant linux box. I am trying to access the app on my phone using expo but it just does not work. Has anyone managed to make this work with port forwarding or something similar?
ThierryMichel
  • 487
  • 1
  • 5
  • 20
0
votes
1 answer

create-react-native-app failed to build javascript bundle when running using Expo

I installed create-react-native-app on my machine to start working with React Native and was stopped by this error on the npm start step itself. Current Environment: node - 6.14.0 npm - 3.10.10 Expo - 2.3.0.1012011 On my terminal I am getting -…
Akash Singh
  • 21
  • 1
  • 8
0
votes
1 answer

react-native-elements: icons throw Invariant Violation error

I'm new to react native and I face a problem I have no idea how to solve. I created and started a new project as follows: create-react-native-app ProjectName cd ProjectName yarn add react-native-elements@beta npm start The package.json looks like…
FBa
  • 135
  • 1
  • 7