Update - this has been fixed with the release of 0.18.1
Trying to run the tutorial with Genymotion emulator.
- React Native 0.18
- OS X Yosemite
- Genymotion
react-native run-android
succeeds. Following along tutorial, successfully launches app in emulator until I get to this step:
var {
AppRegistry,
Image,
StyleSheet,
Text,
View,
} = React;
App launches with red screen of death ("Unable to download JS bundle. Did you forget to start the development device..."). Noticing the following in react packager logs:
React packager ready.
[1:31:52 PM] <END> Crawling File System (1102ms)
[1:31:52 PM] <START> Building in-memory fs for JavaScript
[1:31:54 PM] <END> Building in-memory fs for JavaScript (2263ms)
[1:31:54 PM] <START> Building in-memory fs for Assets
[1:31:56 PM] <END> Building in-memory fs for Assets (2149ms)
[1:31:56 PM] <START> Building Haste Map
[1:31:58 PM] <START> Building (deprecated) Asset Map
[1:31:59 PM] <END> Building (deprecated) Asset Map (742ms)
[1:31:59 PM] <END> Building Haste Map (2676ms)
[1:31:59 PM] <END> Building Dependency Graph (8194ms)
[1:32:09 PM] <START> request:/index.android.bundle?platform=android&dev=true
[1:32:09 PM] <START> find dependencies
[1:32:09 PM] <END> find dependencies (182ms)
[1:32:09 PM] <START> transform
transforming [========================================] 100% 393/394[1:32:44 PM] <START> request:/index.android.bundle?platform=android&dev=true
Note - hung on 393/394 (even though it says 100%).
I'm aware of this issue, solved via adb reverse tcp:8081 tcp:8081
, but I'm running on an emulator, and don't think this is applicable here.
I've opened an issue on the React Native github, but am trying to see if anyone else saw this and got past it.
Edit: The React Native team has confirmed this is an open issue with.18 and the links are here in case anyone stumbles across this and wants to track it.