Questions tagged [react-native-cli]
230 questions
1
vote
4 answers
Can I install react native Cli through terminal globally?
I want to install react-native cli but I don't where to run this command: npm install -g react-native-cli. Do I need to run this command on my macOS terminal or when I will make a directory for my react native app then there I need to run this…

Harsh Mishra
- 862
- 3
- 15
- 29
1
vote
3 answers
react native init failed
whenever I create a new project then it throws the following Error. I did update any settings. everything was working fine before yesterday. Here is my issue.
[1/4] Resolving packages...
error Couldn't find package…

Engr.Aftab Ufaq
- 3,356
- 3
- 21
- 47
1
vote
0 answers
Initialized a new react-native app, but not installing to device
I have not used react-native for a while. The old project properly installs to device but now when i am creating a new react-native project and trying to install it to the device, it fails showing the following error.
FAILURE: Build failed with an…

Bhaskar Kherkatary
- 23
- 1
- 6
1
vote
4 answers
React Native app crashes when calling .getToken() on @react-native-firebase/messaging
I am a developing a bare react native app with react native cli.
I recentlty integrated firebase and installed @react-native-firebase/messaging.
When calling .getToken() of messaging
import messaging from '@react-native-firebase/messaging';
await…

Pulkit saini
- 49
- 1
- 5
1
vote
0 answers
React Native CLI - How to debug Redux on the device?
I am building a Bluetooth app (using react-native-ble-plx and Redux).
When the app is running in the simulator, I can debug the Redux state with React Native Debugger. But Bluetooth is not available in the simulator, so I have to build the app every…

Tymoxx
- 167
- 2
- 11
1
vote
0 answers
Is it OK to remove unwanted dot files from react native?
I want to clean my react-native directory...So I removed:
_editorconfig
.buckconfig
.eslintrc.js
.flowconfig
.gitattributes
.prettierrc.js
.watchmanconfig
So is it OK to remove those files?

Stone
- 241
- 1
- 4
- 18
1
vote
0 answers
React-Native Native CLI Typescript Project is working properly but showing return area in class component as errors
Showing the below error message on all components, react-native init created a functional component template and showing errors that happen after converted to class components.
JSX element class does not support attributes because it does not have…

pasindu
- 11
- 3
1
vote
0 answers
Errors when running command "npx react-native run-android"
C:\Users\lenovo\Desktop\react-native-cli>cd AwesomeProject
C:\Users\lenovo\Desktop\react-native-cli\AwesomeProject>npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier"…

Fatima Shahid
- 11
- 2
1
vote
1 answer
react-native-af-video-player "Oops! there was an error while playing this video please try again later"
I'm using this library "react-native-af-video-player" for playing videos from my remote server, and its working perfectly on android, but on iOS its giving this error "Oops! there was an error while playing this video please try again later".
I…

Jawad Chawich
- 73
- 8
1
vote
0 answers
React Native pod install fails [nanopb]
pod install fails with this error, anyone know what to do?
[!] CocoaPods could not find compatible versions for pod "nanopb":
In Podfile:
EXFirebaseAnalytics (from `../node_modules/expo-firebase-analytics/ios`) was resolved to 2.4.1, which…

Mark Roger Cabadsan
- 51
- 2
- 8
1
vote
1 answer
Missing dependencies when using yarn workspace with React native init
I want to setup a monorepo.
I init my React native project with npx react-native init myProject as the first project. (there will be more project added later)
Folder structure
Parent
myProject
package.json (created by…

Huy Nguyen
- 520
- 2
- 7
- 20
1
vote
1 answer
Difference between 'function App()' and 'class App extends Component' in react native
I'am newly learning react native, and there is one thing that i still don't get or know the difference between, the 'function App() { return() }' and 'class App extends Component { render(); return(...)}'. I know that in the first i use 'useState'…

Jawad Chawich
- 73
- 8
1
vote
1 answer
How to build react-native application with react-native cli?
I would wish to submit my react-native app to app store, but I don't know how to build it.
I've been following this official doc of react-native (http://reactnative.dev/docs/running-on-device#building-your-app-for-production) about how to build my…

Ville Miekk-oja
- 18,749
- 32
- 70
- 106
1
vote
1 answer
React Native CLI vs Expo CLI which one to use?
I'm planning to develop an Mobile App in react-native, as i'm new to this language and i have gone through some react-native tutorial videos in udemy, i just want to know the difference between React Native CLI vs Expo CLI. If we are to develop an…

Madhu
- 869
- 1
- 17
- 37
1
vote
0 answers
running react native apps on ios in linux
I used develop android application in with react native for over year and now the time comes to develop ios applications. can i run and test my application with react-native cli and my iphone 6s from my linux OS?

Emad Baqeri
- 2,333
- 2
- 14
- 29