Skip to content

Commit

Permalink
Add caveat on PCH errors
Browse files Browse the repository at this point in the history
Moving files that have generated PCHs causes an error that you cannot clear easily.  Here are the instructions on how.

I was prompted to place this info here via facebook#6797
  • Loading branch information
GantMan committed Apr 23, 2016
1 parent ea8f584 commit ec3b7c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/KnownIssues.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ React Native Android depends on [Fresco](https://github.com/facebook/fresco) for

Try running `react-native init` with `--verbose` and see [#2797](https://github.com/facebook/react-native/issues/2797) for common causes.

### Moving after compile

Moving a React Native project after it has been compiled in iOS can sometimes cause errors with pre-compiled headers. This results in a messages resembling: `error: PCH was compiled with module cache path ...`. If you were compiling using Xcode you can [hold option when you clean the build](http://stackoverflow.com/a/15463219/3110982). If you're using `react-native run-ios` you can manually clean the header cache by deleting the contents of your ModuleCache folder. _e.g._ `rm -rf ios/build/ModuleCache/*`

### Text Input Border

The text input has by default a border at the bottom of its view. This border has its padding set by the background image provided by the system, and it cannot be changed. Solutions to avoid this is to either not set height explicitly, case in which the system will take care of displaying the border in the correct position, or to not display the border by setting underlineColorAndroid to transparent.

0 comments on commit ec3b7c6

Please sign in to comment.