mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Refactor headers to work with Android NDK
This commit is contained in:
@@ -11,8 +11,13 @@
|
||||
|
||||
#import <sys/stat.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#import <React/JSBundleType.h>
|
||||
#import <React/JavaScriptCore.h>
|
||||
#else
|
||||
#import <cxxreact/JSBundleType.h>
|
||||
#import <jschelpers/JavaScriptCore.h>
|
||||
#endif
|
||||
|
||||
#import "RCTBridge.h"
|
||||
#import "RCTConvert.h"
|
||||
|
||||
@@ -9,7 +9,11 @@
|
||||
|
||||
#include "RCTJSCErrorHandling.h"
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#import <React/JavaScriptCore.h>
|
||||
#else
|
||||
#import <jschelpers/JavaScriptCore.h>
|
||||
#endif
|
||||
|
||||
#import "RCTAssert.h"
|
||||
#import "RCTJSStackFrame.h"
|
||||
|
||||
@@ -17,8 +17,13 @@
|
||||
|
||||
#import <UIKit/UIDevice.h>
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#import <React/JSBundleType.h>
|
||||
#import <React/JavaScriptCore.h>
|
||||
#else
|
||||
#import <cxxreact/JSBundleType.h>
|
||||
#import <jschelpers/JavaScriptCore.h>
|
||||
#endif
|
||||
|
||||
#import "JSCSamplingProfiler.h"
|
||||
#import "RCTAssert.h"
|
||||
|
||||
@@ -9,7 +9,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#if defined(__APPLE__)
|
||||
#include <React/JSCWrapper.h>
|
||||
#else
|
||||
#include <jschelpers/JSCWrapper.h>
|
||||
#endif
|
||||
|
||||
#if defined(__APPLE__)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user