Don't use #import in C++ Code (#28825)

Summary:
While #import is common in Objective C, it's a vendor specific extension in C++, only supported by GCC/Clang, and only when -pedantic is off. Its use causes build breaks with MSVC. Replace it with the standard #include.

## Changelog

[Internal] [Fixed] - Don't use #import in C++ Code
Pull Request resolved: https://github.com/facebook/react-native/pull/28825

Test Plan: We've ben running this change within react-native-windows for some time.

Differential Revision: D21391233

Pulled By: shergin

fbshipit-source-id: c0f94f314c46d6ac24067bbdcd5aaaeec9da283f
This commit is contained in:
Nick Gerleman authored and Facebook GitHub Bot committed 2020-05-04 16:52:24 -07:00
1 parent 7f2515ece8
commit 30a89f30c6
2 files changed
+4 -4

No files matched your search

@@ -5,9 +5,9 @@
* LICENSE file in the root directory of this source tree.
*/
#import "SampleTurboCxxModule.h"
#include "SampleTurboCxxModule.h"
#import <ReactCommon/TurboModuleUtils.h>
#include <ReactCommon/TurboModuleUtils.h>
using namespace facebook;
@@ -7,9 +7,9 @@
#pragma once
#import <memory>
#include <memory>
#import "NativeSampleTurboCxxModuleSpecJSI.h"
#include "NativeSampleTurboCxxModuleSpecJSI.h"
namespace facebook {
namespace react {