text
stringlengths
1
24.5M
/* * 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. */ #pragma once #include <ReactCommon/SchedulerPriority.h> #include <react/debug/react_native_assert.h> #include <react/timing/prim...
/* * 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. */ #include "Task.h" #include <atomic> namespace facebook::react { namespace { inline uint64_t getNextId() noexcept { static st...
/* * 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. */ #pragma once #include <ReactCommon/SchedulerPriority.h> #include <jsi/jsi.h> #include <react/timing/primitives.h> #include <cst...
/* * 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. */ #include <gtest/gtest.h> #include <hermes/hermes.h> #include <jsi/jsi.h> #include <react/featureflags/ReactNativeFeatureFlags.h> ...
/* * 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. */ #include <gtest/gtest.h> #include <react/renderer/runtimescheduler/SchedulerPriorityUtils.h> #include <react/renderer/runtimesche...
/* * 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. */ #pragma once #include <react/timing/primitives.h> namespace facebook::react { class StubClock { public: HighResTimeStamp ge...
/* * 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. */ #pragma once #include <glog/logging.h> #include <jsi/jsi.h> namespace facebook::react { /* * Exposes StubErrorUtils to JavaSc...
/* * 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. */ #pragma once #include <condition_variable> #include <queue> class StubQueue { public: void runOnQueue(std::function<void()> ...
/* * 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. */ #pragma once #include <vector> namespace facebook::react { struct InspectorData { std::vector<std::string> hierarchy; int ...
/* * 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. */ #include "Scheduler.h" #include <glog/logging.h> #include <jsi/jsi.h> #include <cxxreact/TraceSection.h> #include <react/debug/...
/* * 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. */ #pragma once #include <memory> #include <ReactCommon/RuntimeExecutor.h> #include <react/performance/cdpmetrics/CdpMetricsReport...
/* * 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. */ #pragma once #include <memory> #include <react/renderer/core/ReactPrimitives.h> #include <react/renderer/mounting/MountingCoord...
/* * 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. */ #pragma once #include <memory> #include <ReactCommon/RuntimeExecutor.h> #include <react/renderer/componentregistry/ComponentDes...
/* * 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. */ #include "SurfaceHandler.h" #include <cxxreact/TraceSection.h> #include <react/debug/react_native_assert.h> #include <react/feat...
/* * 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. */ #pragma once #include <memory> #include <shared_mutex> #include <folly/dynamic.h> #include <react/renderer/core/LayoutConstrain...
/* * 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. */ #include "SurfaceManager.h" #include <glog/logging.h> #include <react/renderer/scheduler/Scheduler.h> namespace facebook::react...
/* * 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. */ #pragma once #include <mutex> #include <optional> #include <shared_mutex> #include <unordered_map> #include <react/renderer/cor...
/* * 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. */ #include "SurfaceTelemetry.h" #include <algorithm> namespace facebook::react { void SurfaceTelemetry::incorporate( const T...
/* * 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. */ #pragma once #include <vector> #include <react/renderer/telemetry/TransactionTelemetry.h> #include <react/utils/Telemetry.h> n...
/* * 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. */ #include "TransactionTelemetry.h" #include <react/debug/react_native_assert.h> #include <utility> namespace facebook::react { ...
/* * 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. */ #pragma once #include <chrono> #include <cstdint> #include <functional> #include <react/utils/Telemetry.h> namespace facebook:...
/* * 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. */ #include <chrono> #include <thread> #include <gtest/gtest.h> #include <react/renderer/telemetry/TransactionTelemetry.h> #includ...
/* * 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. */ #pragma once #include <react/renderer/core/ReactPrimitives.h> #include <react/renderer/graphics/Float.h> namespace facebook::re...
/* * 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. */ #pragma once #include <glog/logging.h> #include <cstddef> #include <react/renderer/attributedstring/AttributedStringBox.h> #inc...
/* * 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. */ #include "TextMeasureCache.h" #include <utility> namespace facebook::react { static Rect rectFromDynamic(const folly::dynamic&...
/* * 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. */ #pragma once #include <react/renderer/attributedstring/AttributedString.h> #include <react/renderer/attributedstring/ParagraphAt...
/* * 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. */ #pragma once #include <fbjni/fbjni.h> namespace facebook::react { class JPreparedLayout : public jni::JavaClass<JPreparedLayou...
/* * 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. */ #include <span> #include <utility> #include <react/common/mapbuffer/JReadableMapBuffer.h> #include <react/debug/react_native_ass...
/* * 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. */ #pragma once #include <react/jni/SafeReleaseJniRef.h> #include <react/renderer/attributedstring/AttributedStringBox.h> #include ...
/* * 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. */ #include "TextLayoutManager.h" namespace facebook::react { TextLayoutManager::TextLayoutManager( const std::shared_ptr<cons...
/* * 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. */ #pragma once #include <react/renderer/attributedstring/AttributedStringBox.h> #include <react/renderer/attributedstring/Paragrap...
/* * 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 <UIKit/UIKit.h> #include <react/renderer/attributedstring/AttributedString.h> #include <react/renderer/attributedstring/...
/* * 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 <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, RCTFontStyle) { RCTFontStyleUndefined = -1, RCTF...
/* * 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 <React/RCTDefines.h> #import <UIKit/UIKit.h> #import <react/renderer/textlayoutmanager/RCTFontProperties.h> NS_ASSUME_NO...
/* * 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 <UIKit/UIKit.h> #import <react/renderer/attributedstring/AttributedString.h> #import <react/renderer/attributedstring/Pa...
/* * 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 <UIKit/UIKit.h> #include <react/renderer/graphics/RCTPlatformColorUtils.h> #include <react/renderer/textlayoutmanager/RC...
/* * 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. */ #pragma once #include <react/renderer/attributedstring/AttributedStringBox.h> #include <react/renderer/attributedstring/Paragrap...
/* * 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. */ #include <memory> #include <gtest/gtest.h> #include <react/renderer/textlayoutmanager/TextLayoutManager.h> using namespace fac...
/* * 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. */ #include "AppRegistryBinding.h" #include <cxxreact/TraceSection.h> #include <react/renderer/uimanager/primitives.h> namespace fa...
/* * 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. */ #pragma once #include <folly/dynamic.h> #include <jsi/jsi.h> #include <react/renderer/core/ReactPrimitives.h> namespace faceboo...
/* * 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. */ #pragma once namespace facebook::react { class LayoutAnimationStatusDelegate { public: /** * Called when the LayoutAnimat...
/* * 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. */ #include "PointerEventsProcessor.h" #include <glog/logging.h> #include <react/renderer/bridging/bridging.h> namespace facebook:...
/* * 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. */ #pragma once #include <functional> #include <jsi/jsi.h> #include <react/renderer/uimanager/PointerHoverTracker.h> #include <rea...
/* * 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. */ #include "PointerHoverTracker.h" #include <utility> namespace facebook::react { using EventPath = PointerHoverTracker::EventPa...
/* * 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. */ #pragma once #include <functional> #include <initializer_list> #include <memory> #include <react/renderer/components/view/primi...
/* * 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. */ #pragma once #include <folly/dynamic.h> #include <jsi/JSIDynamic.h> #include <jsi/jsi.h> #include <react/debug/react_native_asse...
/* * 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. */ #pragma once #warning "The SurfaceRegistryBinding.h header has been renamed to AppRegistryBinding.h" #include <react/renderer/u...
/* * 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. */ #include "UIManager.h" #include <cxxreact/JSExecutor.h> #include <cxxreact/TraceSection.h> #include <react/debug/react_native_as...
/* * 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. */ #pragma once #include <folly/dynamic.h> #include <jsi/jsi.h> #include <ReactCommon/RuntimeExecutor.h> #include <shared_mutex> ...
/* * 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. */ #pragma once #include <react/renderer/components/view/BaseViewProps.h> #include <react/renderer/core/ShadowNodeFamily.h> namesp...
/* * 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. */ #pragma once #include <jsi/jsi.h> #include <react/renderer/componentregistry/ComponentDescriptorFactory.h> #include <react/rend...
/* * 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. */ #include "UIManagerBinding.h" #include <cxxreact/TraceSection.h> #include <glog/logging.h> #include <jsi/JSIDynamic.h> #include ...
/* * 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. */ #pragma once #include <folly/dynamic.h> #include <jsi/jsi.h> #include <react/renderer/core/RawValue.h> #include <react/renderer/...
/* * 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. */ #pragma once #include <react/renderer/components/root/RootShadowNode.h> namespace facebook::react { class ShadowTree; struct S...
/* * 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. */ #pragma once #include <react/renderer/core/ReactPrimitives.h> #include <react/renderer/core/ShadowNode.h> #include <react/render...
/* * 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. */ #pragma once #include <react/renderer/components/root/RootShadowNode.h> #include "UIManager.h" namespace facebook::react { cla...
/* * 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. */ #pragma once #include <jsi/jsi.h> #include <react/renderer/componentregistry/ComponentDescriptorFactory.h> #include <react/rend...
/* * 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. */ #include "UIManager.h" #include <glog/logging.h> #include <react/debug/react_native_assert.h> #include <react/renderer/component...
/* * 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. */ #include "LazyShadowTreeRevisionConsistencyManager.h" #include <glog/logging.h> namespace facebook::react { LazyShadowTreeRevis...
/* * 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. */ #pragma once #include <react/renderer/components/root/RootShadowNode.h> #include <react/renderer/consistency/ShadowTreeRevisionC...
/* * 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. */ #pragma once #include <react/renderer/components/root/RootShadowNode.h> #include <react/renderer/core/ReactPrimitives.h> #includ...
/* * 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. */ #include <gtest/gtest.h> #include <react/renderer/components/root/RootShadowNode.h> #include <react/renderer/element/testUtils.h>...
/* * 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. */ #include <memory> #include <gtest/gtest.h> #include <react/renderer/uimanager/UIManager.h> using namespace facebook::react; TE...
/* * 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. */ #include <gtest/gtest.h> #include <jsi/jsi.h> #include <react/renderer/element/Element.h> #include <react/renderer/element/testUt...
/* * 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. */ #pragma once #include <react/runtime/ReactInstance.h> namespace facebook::react { class BindingsInstaller { public: virtual...
/* * 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. */ #include "BridgelessNativeMethodCallInvoker.h" namespace facebook::react { BridgelessNativeMethodCallInvoker::BridgelessNativeM...
/* * 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. */ #pragma once #include <ReactCommon/CallInvoker.h> #include <cxxreact/MessageQueueThread.h> #include <memory> namespace facebook...
/* * 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. */ #include "BufferedRuntimeExecutor.h" namespace facebook::react { BufferedRuntimeExecutor::BufferedRuntimeExecutor( RuntimeE...
/* * 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. */ #pragma once #include <ReactCommon/RuntimeExecutor.h> #include <jsi/jsi.h> #include <atomic> #include <mutex> #include <queue> ...
/* * 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. */ #pragma once #include <cstdint> namespace facebook::react { /** * This interface is implemented by each platform. * Responsi...
/* * 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. */ #include "ReactInstance.h" #include <ReactCommon/RuntimeExecutor.h> #include <cxxreact/ErrorUtils.h> #include <cxxreact/JSBigStr...
/* * 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. */ #pragma once #include <ReactCommon/RuntimeExecutor.h> #include <cxxreact/JSBigString.h> #include <cxxreact/MessageQueueThread.h>...
/* * 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. */ #include "TimerManager.h" #include <cxxreact/TraceSection.h> #include <cmath> #include <utility> namespace facebook::react { ...
/* * 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. */ #pragma once #include <ReactCommon/RuntimeExecutor.h> #include <unordered_map> #include <vector> #include "PlatformTimerRegistr...
/* * 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. */ #include "HermesInstance.h" #include <hermes/inspector-modern/chrome/HermesRuntimeTargetDelegate.h> #include <jsi/jsilib.h> #inc...
/* * 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. */ #pragma once #include <cxxreact/MessageQueueThread.h> #include <hermes/hermes.h> #include <jsi/jsi.h> #include <react/runtime/JS...
/* * 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. */ #include "LegacyUIManagerConstantsProviderBinding.h" namespace facebook::react::LegacyUIManagerConstantsProviderBinding { void ...
/* * 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. */ #pragma once #include <jsi/jsi.h> namespace facebook::react::LegacyUIManagerConstantsProviderBinding { /* * Installs RN$Legac...
/* * 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 <UIKit/UIKit.h> #import <React/RCTTiming.h> #import <react/runtime/PlatformTimerRegistry.h> #import <react/runtime/Timer...
/* * 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 <Foundation/Foundation.h> #import <react/utils/ContextContainer.h> @protocol RCTContextContainerHandling <NSObject> - ...
/* * 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 <hermes/Public/CrashManager.h> #import <jsi/jsi.h> #import <react/runtime/JSRuntimeFactory.h> namespace facebook::react ...
/* * 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 "RCTHost.h" #import "RCTContextContainerHandling.h" @interface RCTHost (Internal) - (void)registerSegmentWithId:(NSNum...
/* * 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 <Foundation/Foundation.h> #import <React/RCTDefines.h> #import <react/renderer/core/ReactPrimitives.h> #import <react/ru...
/* * 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 <UIKit/UIKit.h> #import <React/RCTDefines.h> #import <React/RCTJavaScriptLoader.h> #import <jsinspector-modern/ReactCdp....
/* * 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 <cxxreact/MessageQueueThread.h> #import <jsi/jsi.h> #import <react/runtime/JSRuntimeFactory.h> namespace facebook::react...
/* * 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 <Foundation/Foundation.h> #import <React/RCTMessageThread.h> NS_ASSUME_NONNULL_BEGIN @interface RCTJSThreadManager : N...
/* * 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. */ #pragma once #include <jsi/jsi.h> namespace facebook::react { /* * Installs UIManger constants provider into JavaScript runtim...
/* * 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 <Foundation/Foundation.h> @class RCTPerformanceLogger; NS_ASSUME_NONNULL_BEGIN extern void registerPerformanceLoggerHo...
/* * 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. */ #include <memory> #include <queue> #include <utility> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <ReactCommon/R...
/* * 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. */ #pragma once #include <algorithm> #include <random> namespace facebook::react { /* * The source of pseudo-random numbers and ...
/* * 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. */ #pragma once #include <chrono> class MockClock { public: using time_point = std::chrono::time_point<std::chrono::steady_cloc...
/* * 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. */ #pragma once #include <gmock/gmock.h> #include <react/renderer/scheduler/SurfaceHandler.h> namespace facebook::react { class ...
/* * 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. */ #pragma once #include <glog/logging.h> #include <gtest/gtest.h> #include <algorithm> #include <memory> #include <react/renderer...
/* * 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 <Foundation/Foundation.h> #import <React/RCTDefines.h> RCT_EXTERN_C_BEGIN void RCTSwizzleInstanceSelector(Class target...
/* * 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 <Foundation/Foundation.h> #import <React/RCTDefines.h> RCT_EXTERN_C_BEGIN int RCTGetRetainCount(id _Nullable object); ...
/* * 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 <Foundation/Foundation.h> @interface ShimRCTInstance : NSObject @property int initCount; @property int invalidateCount;...
/* * 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. */ #pragma once #include <react/debug/flags.h> #include <chrono> #include <functional> namespace facebook::react { class HighResD...
/* * 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. */ #include <gtest/gtest.h> #include "../primitives.h" namespace facebook::react { TEST(HighResDuration, CorrectlyConvertsToDOMHi...
/* * 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. */ #pragma once #include <memory> #include <mutex> #include <optional> #include <shared_mutex> #include <string> #include <unordere...
/* * 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. */ #pragma once #include <cmath> namespace facebook::react { constexpr float kDefaultEpsilon = 0.005f; template <typename T> inl...