-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable Bridgless for JSC and frameworks
Summary: This change makes bridgeless build with JSC and with all the frameworks settings. ## Changelog: [iOS][Added] Support bridgeless with JSC and frameworks Differential Revision: D47025704 fbshipit-source-id: 36ae357a40a08c86b9a403dea589a8575e972b29
- Loading branch information
1 parent
169607f
commit 93fbcae
Showing
9 changed files
with
152 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/react-native/ReactCommon/react/bridgeless/platform/ios/JSC/RCTJscInstance.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
#import <jsi/jsi.h> | ||
#import <react/bridgeless/JSEngineInstance.h> | ||
|
||
namespace facebook { | ||
namespace react { | ||
|
||
class RCTJscInstance : public JSEngineInstance { | ||
public: | ||
RCTJscInstance(); | ||
|
||
std::unique_ptr<jsi::Runtime> createJSRuntime() noexcept override; | ||
|
||
~RCTJscInstance(){}; | ||
}; | ||
} // namespace react | ||
} // namespace facebook |
22 changes: 22 additions & 0 deletions
22
packages/react-native/ReactCommon/react/bridgeless/platform/ios/JSC/RCTJscInstance.mm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
#import "RCTJscInstance.h" | ||
#include <jsc/JSCRuntime.h> | ||
|
||
namespace facebook { | ||
namespace react { | ||
|
||
RCTJscInstance::RCTJscInstance() {} | ||
|
||
std::unique_ptr<jsi::Runtime> RCTJscInstance::createJSRuntime() noexcept | ||
{ | ||
return jsc::makeJSCRuntime(); | ||
} | ||
|
||
} // namespace react | ||
} // namespace facebook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.