Questions tagged [react-native-cli]

230 questions
2
votes
0 answers

Why does react-native run-ios require defining udid?

On my colleague's laptops, they can run react-native run-ios --device and it will run it on the device connected to their laptop. On my laptop, for some reason is also detects my own laptop as a target: $ react-native run-ios --device Scanning…
Sampo
  • 4,308
  • 6
  • 35
  • 51
2
votes
1 answer

I can't run any react app with iOS simulator

from 3, 4 days to today i can't run any app with ios simulator using react-native run-iosthe app exists without any error message and refuses to run. running react-native log-ios this come in stderr coms[7364] : assertion failed: 16G29…
Rafael
  • 3,081
  • 6
  • 32
  • 53
2
votes
1 answer

React native bundle command hangs at copying assets

I am trying to run a react-native bundle for Android using react native cli. It hangs after trying to copy assets to the "res" folder. I am running it on Windows 10. Here is the console output: C:\..\ReactNative>react-native bundle --platform…
Yury
  • 161
  • 2
  • 10
2
votes
3 answers

`react-native init AwesomeProject` throwing SyntaxError

react-native init AwesomeProject is throwing SyntaxError: Unexpected token : and I'm not sure why. I've uninstalled and re-installed react-native-cli. Tried with and without yarn. Any suggestions? mes-MBP:myproject me$ react-native init…
Randy
  • 4,351
  • 2
  • 25
  • 46
1
vote
2 answers

[node, @react-native-community\cli\build\bin.js, config]` finished with an exception. Error message: groovy.json.JsonException

Description Previously I wanted to continue to finish my React Native Android application, but after running it, an error like this has never happened before: Error Details FAILURE: Build failed with an exception. Where: Script…
1
vote
0 answers

React Native (Android) InAppBrowser Close Not working on setTimeout

I am trying to close the browser after a certain time, but it's not working on Android ( Works fine on ios). The code inside setTimeout is executing after I close the browser manually. const onclick = ()=>{ …
1
vote
2 answers

React Native Navigation Drawer only opens on initial swipe

I’m experiencing an issue with my React Native Navigation Drawer: it opens up only one time when swiping from left to right. It doesn't open when click on the hamburger icon on the top. When you rebuild the app, it works again only once on the…
1
vote
0 answers

npx react-native run-ios build fails, but build succeeds in XCode

This is an app that has been building both on the command line and in XCode,I have that stopped building on the command line. It happened awhile ago and I have just been using XCode, but now I would like to fix it. Here is the immediate…
scrayne
  • 701
  • 7
  • 18
1
vote
1 answer

React Native Stuck at Bundling % (ex: 99% || 98% || 84%)

My app builds successfully, everything works and when it loads in Physical Device, then bundler starts bundling the project, loading from localhost:8081 starts and the building <1-100>% and it gets stuck at some random number. I have…
1
vote
1 answer

Why react native can`t find image in assets folder?

I have a background image in src/assets folder which I try to get access to from src/screens/splash/index.js as such: import {ImageBackground} from 'react-native'; import React from 'react'; export default function SplashScreen() { return ( …
Andras
  • 67
  • 8
1
vote
0 answers

I am installing React Native CLI but this error is continuously persisting

Its been 5 days since I am getting this error. I have tried uninstalling everything and reinstalling it again from scratch but this error isnt going anywhere.When ever I run "npm start" it gives me this ProjectName@0.0.1 start node…
frazahmedd
  • 11
  • 4
1
vote
1 answer

How to get .env variables in React Native with TypeScript and RN CLI?

I'm working on a react native project with typescript and react native CLI (not expoCLI). These are the versions I have: ... "@types/jest": "^28.1.4", "@types/react": "~17.0.21", "@types/react-native": "0.68.0", …
cblnpa
  • 397
  • 1
  • 4
  • 20
1
vote
0 answers

Could not resolve io.github.lizhangqu:coreprogress:1.0.2 in React Native during react-native-compressor installing

I am using react-native-0.70.6 and during the installation of react-native-compressor-1.6.1 I am getting an error when running npx react-native-run-android the error is FAILURE: Build failed with an exception. What went wrong: Could not determine…
1
vote
1 answer

Where to find documentation on `react-native.config.js` file?

I have created new React Native project using its CLI. One of the generated files is react-native.config.js. I cannot find any documentation on it. It's not mentioned on the React Native website and I couldn't find documentation for the CLI.
ansavchenco
  • 535
  • 6
  • 14
1
vote
1 answer

How to install new WebView version in react native

react-native-webview": "^11.21.2" this is version in my project I need to install Latest version of WebView in react native react-native-webview:11.26.0 but whenever I try to install this npm i react-native-webview@11.26.0 or npm install…
user19534405