run-react-native | Simplify react-native development | Frontend Framework library
kandi X-RAY | run-react-native Summary
kandi X-RAY | run-react-native Summary
Simplify react-native development
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of run-react-native
run-react-native Key Features
run-react-native Examples and Code Snippets
The MIT License (MIT)
Copyright (c) 2016 Kogo Software LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restrictio
Community Discussions
Trending Discussions on run-react-native
QUESTION
I have been reading React Native's documentation as well as forums, and answers to similar questions but cannot figure out how to run my application on my device.
I have tried what was mentioned in this question "Run react-native application on iOS device directly from command line?", as well as deleting the build folder from the ios directory and rerunning the script. I will run this command npm run ios --device "Anthony’s iPhone"
, but it results in this Launching iPhone 6 (iOS 11.3)...
I have also tried running npm run ios --simulator "iPhone 5s"
but again I get Launching iPhone 6 (iOS 11.3)...
. I am not sure where to go from here, more information can be seen below. Of course, the simulator is always launched and functions properly but I would like to control whether it runs on a device or in which simulator.
ANSWER
Answered 2018-Aug-10 at 17:08The npm run ios
as defined your script will run react-native run-ios
.
Therefore you can either install react-native cli
globally and use
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install run-react-native
Ensure emulator and adb are available in your $PATH.
cd $YOUR_PROJECT
Add export RUN_REACT_NATIVE_ANDROID_AVD='name-of-my-development-avd'. You can get the names of available avds on your system by running emulator -list-avds.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page