Skip to content

Commit

Permalink
Fixes iOS packager connection not work (#25803)
Browse files Browse the repository at this point in the history
Summary:
Macro `ENABLE_PACKAGER_CONNECTION` invalid because of `__has_include` can't find the header now. Leads to packager connection not work anymore.

## Changelog

[iOS] [Fixed] - Fixes iOS packager connection not work
Pull Request resolved: #25803

Test Plan:
1. Init a new project.
2. Run and input `curl http://localhost:8081/reload` in terminal. Reload operation can execute.

Differential Revision: D16458384

Pulled By: TheSavior

fbshipit-source-id: 27e7e02b5666a2131e995accd34e4da7bad42335
  • Loading branch information
zhongwuzw authored and facebook-github-bot committed Jul 24, 2019
1 parent 5e960e3 commit 4ab9da1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/Base/RCTDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#endif

#ifndef ENABLE_PACKAGER_CONNECTION
#if RCT_DEV && __has_include(<React/RCTPackagerConnection.h>) && !TARGET_OS_UIKITFORMAC
#if RCT_DEV && (__has_include("RCTPackagerConnection.h") || __has_include(<React/RCTPackagerConnection.h>)) && !TARGET_OS_UIKITFORMAC
#define ENABLE_PACKAGER_CONNECTION 1
#else
#define ENABLE_PACKAGER_CONNECTION 0
Expand Down

0 comments on commit 4ab9da1

Please sign in to comment.