Files
react-native/docs/LinuxWindowsSupport.md
sunnylqm 7e22202061 add ERROR Watcher took too long to load hint
add `ERROR  Watcher took too long to load` hint
2015-11-18 09:01:17 +08:00

34 lines
1.8 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: linux-windows-support
title: Linux and Windows Support
layout: docs
category: Quick Start
permalink: docs/linux-windows-support.html
next: tutorial
---
__NOTE: This guide focuses on Android development. You'll need a Mac to build iOS apps.__
As React Native on iOS requires a Mac and most of the engineers at Facebook and contributors use Macs, support for OS X is a top priority. However, we would like to support developers using Linux and Windows too. We believe we'll get the best Linux and Windows support from people using these operating systems on a daily basis.
Therefore, Linux and Windows support for the development environment is an ongoing community responsibility. This can mean filing issues and submitting PRs, and we'll help review and merge them. We are looking forward to your contributions and appreciate your patience.
As of **version 0.14** Android development with React native is mostly possible on Linux and Windows. You'll need to install [Node.js](https://nodejs.org/) 4.0 or newer. On Linux we recommend installing [watchman](https://facebook.github.io/watchman/docs/install.html), otherwise you might hit a node file watching bug.
## What's missing on Windows
On Windows the packager won't be started automatically when you run `react-native run-android`. You can start it manually using:
#For React Native version < 0.14
cd MyAwesomeApp
node node_modules/react-native/packager/packager.js
#For React Native version >= 0.14 which had removed packager.js)
cd MyAwesomeApp
react-native start
If you hit a `ERROR Watcher took too long to load` on Windows, try increasing the timeout in [this file](https://github.com/facebook/react-native/blob/master/packager/react-packager/src/FileWatcher/index.js#L17) (under your node_modules/react-native).