Questions tagged [react-native-cli]

230 questions
2
votes
0 answers

Confusion on the deprecation of React Native Unimodules

On their documentation: https://docs.expo.dev/bare/installing-unimodules/ This library is deprecated! As of Expo SDK 43, react-native-unimodules is deprecated in favor of the expo package. Please refer to the Installing Expo modules…
2
votes
0 answers

React Native: Build does not fail on TypeScript error

How can I make the React Native CLI fail on a TypeScript error? const getCatOfTheDay = (cat: string) => `Cat of the day: ${cat}`; getCatOfTheDay(123); This should throw a TypeScript error Argument of type 'number' is not assignable to…
Sir hennihau
  • 1,495
  • 4
  • 18
  • 31
2
votes
0 answers

React-Native init project not running

I have been using the expo cli to create and develop react-native projects. The command I use to generate a new expo react-native project is: npx expo-cli init demo I am now trying to replace expo with the react-native cli. I am on a MacBook Pro…
2
votes
0 answers

React Native pod install fails

When I run pod install I get the following error: npx pod install error: missing required argument `module|git:/ react-native version: 0.63.4 node version: 14.10.1 npm version: 6.14.8 Please note I'm running the whole operation on Windows 10, not…
2
votes
1 answer

react-native run-android build crashes on launch without red screen

I'm trying to build the debug version of my app on android. the offline version works alright. (with the react-native bundle ...). But of course, it doesn't trigger the metro bundler. Also, the bundler is listening for build and when…
2
votes
1 answer

Toggle "RNPickerSelect" on "onPress" not working

So I've been looking for a dropdown picker to be toggled on "on Press" since yesterday yet I found nothing, all I want is to put an icon in a "touchable Opacity", and when pressed the dropdown picker shows. I've been advised to use…
2
votes
1 answer

eslint@6.8.0: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "11.6.0"

I tried to run nix react-native init Hello and get the following error: error eslint@6.8.0: The engine "node" is incompatible with this module. Expected version "^8.10.0 || ^10.13.0 || >=11.10.1". Got "11.6.0" error Found incompatible module. I…
Hoay Min Yap
  • 87
  • 1
  • 7
2
votes
2 answers

Yarn or npm? for installing dependencies in react-native

what should I use to install react-native dependencies? yarn or npm, in my case npm have some problems with some of dependencies. Sometimes i use npm to install these, but i am still confused to decide which one to use permanently.
Haseeb Javed
  • 63
  • 2
  • 13
2
votes
1 answer

ReactNative:Failed to parse React Native CLI configuration: groovy.json.JsonException: Unable to determine the current character

started a new react-native project, followed link react native cli quickstart approach. even though I have not done any code change , getting the below error when i run npx react-native run-android Version info: "react": "16.9.0", …
jeevan
  • 81
  • 2
  • 6
2
votes
0 answers

How do I access USB storage on android device in react-native?

I'm creating an application which to be play on my android device. After several weeks searching and continue to develop the application logic, I still unable to find a way to access USB device. I'm develop using React-Native CLI and device is…
Luiey
  • 843
  • 2
  • 23
  • 50
2
votes
2 answers

React Native Pod Error - [!] Invalid `Podfile` file: 767: unexpected token at ''. | Related Issue #448

I have already tried : #448 Environment System: OS: macOS 10.15 CPU: (4) x64 Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz Memory: 30.63 MB / 4.00 GB Shell: 3.2.57 - /bin/sh Binaries: Node: 10.15.3 - /usr/local/bin/node Yarn: 1.19.2 -…
2
votes
0 answers

(Realm Error) Extension not initialized yet, couldn't access compileSdkVersion

I try to build an application in my MacBook and it doesn't build with realm. Two errors occur when I wanna build on android: 1) A problem occurred configuring project ':realm'. 2) A problem occurred evaluating project ':realm'. Extension not…
Rohmad Arifin
  • 21
  • 1
  • 5
2
votes
2 answers

What is purpose of latest doctor command in React Native

I was checking latest react native blog in which they introduced doctor command for react native. the only thing i can understand from there is do envoirnment stuff for you. ? But i don't understand the purpose. What is exactly purpose of doctor …
Muhammad Ashfaq
  • 2,359
  • 5
  • 20
  • 46
2
votes
3 answers

Why assembleDebug success but assembleRelease failed in react native?

I have tried to assemble my project as a release. But it always failed. Below are some of the script that I use to build my apk as release:- BUILD SUCCESSFUL .\gradlew assembleDebug --no-daemon .\gradlew app:assembleDebug BUILD FAILED .\gradlew…
Luiey
  • 843
  • 2
  • 23
  • 50
2
votes
1 answer

Is it possible to use expo splash screen on a react-native-cli inited project

Let's assume I have a project in React Native which was inited with react-native-cli. Is it possible to use expo's splash screen to this project? And if not what is the best way to implement a splash screen in a React Native project that was created…
Giorgos Kartalis
  • 874
  • 1
  • 7
  • 14