-
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.
Summary: Pull Request resolved: #38107 This change makes bridgeless build with JSC and with all the frameworks settings. ## Changelog: [iOS][Added] Support bridgeless with JSC and frameworks Reviewed By: philIip Differential Revision: D47025704 fbshipit-source-id: 5779d3ffd9ed037e6f6dee6c64cc65835f370a5b
- Loading branch information
1 parent
42d6745
commit 3965158
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.