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. */ #include "HttpUtils.h" #include <algorithm> namespace facebook::react::jsinspector_modern { std::string httpReasonPhrase(uint1...
/* * 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 <map> #include <string> namespace facebook::react::jsinspector_modern { using Headers = std::map<std::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. */ #include "NetworkHandler.h" #include <jsinspector-modern/cdp/CdpJson.h> #include <glog/logging.h> #include <chrono> namespace ...
/* * 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 "BoundedRequestBuffer.h" #include "CdpNetwork.h" #include <folly/dynamic.h> #include <atomic> #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 <folly/executors/QueuedImmediateExecutor.h> #include "JsiIntegrationTest.h" #include "engines/JsiIntegrationTestHermesE...
/* * 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 <folly/executors/QueuedImmediateExecutor.h> #include "JsiIntegrationTest.h" #include "engines/JsiIntegrationTestHermesE...
/* * 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 <folly/executors/QueuedImmediateExecutor.h> #include "JsiIntegrationTest.h" #include "engines/JsiIntegrationTestHermesE...
/* * 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 <folly/executors/QueuedImmediateExecutor.h> #include "JsiIntegrationTest.h" #include "engines/JsiIntegrationTestHermesE...
/* * 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 <folly/dynamic.h> #include <folly/json.h> #include <folly/json_pointer.h> #include <gmock/gmock.h> #include "FollyDynam...
/* * 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 <folly/json.h> #include <folly/json_pointer.h> #include <gmock/gmock.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. */ #include <gmock/gmock.h> #pragma once /** * A variant of GMOCK_ON_CALL_IMPL that allows specifying the source location as * a...
/* * 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 <folly/dynamic.h> #include <folly/executors/QueuedImmediateExecutor.h> #include <folly/json.h> #include <gmock/gmock.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. */ #pragma once #include <folly/executors/ScheduledExecutor.h> #include <gmock/gmock.h> #include <jsinspector-modern/InspectorInte...
/* * 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 <fmt/format.h> #include <folly/dynamic.h> #include <folly/executors/ManualExecutor.h> #include <folly/executors/QueuedIm...
/* * 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 <fmt/format.h> #include <folly/executors/ManualExecutor.h> #include <folly/executors/QueuedImmediateExecutor.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 <folly/dynamic.h> #include <folly/json.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <jsi...
/* * 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 "TracingTest.h" #include "engines/JsiIntegrationTestHermesEngineAdapter.h" #include <folly/executors/QueuedImmediateExe...
/** * 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. * * @polyfill * @nolint * @format */ /* eslint-disable no-shadow, eqeqeq, curly, no-unused-vars, no-void, no-control-regex */ ...
/* * 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 "ReactInstanceIntegrationTest.h" #include "FollyDynamicMatchers.h" #include "UniquePtrFactory.h" #include "prelude.js.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. */ #pragma once #include "InspectorMocks.h" #include "ReactNativeMocks.h" #include "UniquePtrFactory.h" #include <folly/executors/...
/* * 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 "ReactNativeMocks.h" #include <glog/logging.h> namespace facebook::react::jsinspector_modern { // // MockMessageQueueT...
/* * 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 <gtest/gtest.h> #include <queue> #include <ReactCommon/RuntimeExecutor.h> #inclu...
/* * 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 "TracingTest.h" #include "engines/JsiIntegrationTestHermesEngineAdapter.h" #include <folly/executors/QueuedImmediateExe...
/* * 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 "FollyDynamicMatchers.h" #include "JsiIntegrationTest.h" #include <fmt/format.h> #include <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 <functional> #include <memory> namespace facebook { /** * A factory that creates objects of type T wrap...
/* * 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 "UniquePtrFactory.h" using namespace ::testing; namespace { struct Foo { explicit Foo(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 <jsinspector-modern/Utf8.h> #include <gmock/gmock.h> #include <gtest/gtest.h> using namespace ::testing; 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. */ #include <jsinspector-modern/WeakList.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <vector> using namespace :...
/* * 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 <folly/executors/QueuedImmediateExecutor.h> #include <hermes/hermes.h> #include "JsiIntegrationTestGenericEngineAdapter...
/* * 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 "../utils/InspectorFlagOverridesGuard.h" #include <jsinspector-modern/FallbackRuntimeTargetDelegate.h> #i...
/* * 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 "JsiIntegrationTestHermesEngineAdapter.h" namespace facebook::react::jsinspector_modern { JsiIntegrationTestHermesEngi...
/* * 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 "../utils/InspectorFlagOverridesGuard.h" #include <jsinspector-modern/RuntimeTarget.h> #include <folly/e...
/* * 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 "InspectorFlagOverridesGuard.h" #include <jsinspector-modern/InspectorFlags.h> #include <react/featureflags/ReactNative...
/* * 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/featureflags/ReactNativeFeatureFlagsDefaults.h> #include <optional> namespace facebook::react::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 "ConsoleTimeStamp.h" namespace facebook::react::jsinspector_modern::tracing { std::optional<folly::dynamic> getConsole...
/* * 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/JSIDynamic.h> #include <jsi/jsi.h> #include <react/timing/primitives.h> #include <cassert> #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 "EventLoopReporter.h" #if defined(REACT_NATIVE_DEBUGGER_ENABLED) #include <react/timing/primitives.h> #include "Perform...
/* * 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 #if defined(REACT_NATIVE_DEBUGGER_ENABLED) #include <react/timing/primitives.h> #endif 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 "TraceEvent.h" namespace facebook::react::jsinspector_modern::tracing { struct InstanceTracingProfile { ...
/* * 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 "PerformanceTracer.h" #include "Timing.h" #include "TraceEventSerializer.h" #include "TracingCategory.h" #include <jsin...
/* * 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 "ConsoleTimeStamp.h" #include "TraceEvent.h" #include "TraceEventProfile.h" #include <react/timing/primit...
/* * 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 <utility> #include <jsinspector-modern/tracing/RuntimeSamplingProfile.h> namespace facebook::react::jsin...
/* * 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 "TraceEvent.h" #include <memory> #include <optional> #include <string> #include <string_view> #include <v...
/* * 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 "RuntimeSamplingProfileTraceEventSerializer.h" #include "PerformanceTracer.h" #include "ProfileTreeNode.h" #include "Tra...
/* * 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 "RuntimeSamplingProfile.h" #include <react/timing/primitives.h> namespace facebook::react::jsinspector_m...
/* * 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 "TraceRecordingState.h" namespace facebook::react::jsinspector_modern::tracing { /** * An interface for...
/* * 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 <cassert> #include <react/timing/primitives.h> namespace facebook::react::jsinspector_modern::tracing { ...
/* * 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 <jsinspector-modern/tracing/TracingCategory.h> #include <react/timing/primitives.h> #include <folly/dynam...
/* * 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> #include <optional> #include <string> #include <vector> 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 "TraceEventSerializer.h" #include "Timing.h" #include "TracingCategory.h" #include <react/timing/primitives.h> namespa...
/* * 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 "TraceEvent.h" #include "TraceEventProfile.h" #include <folly/dynamic.h> namespace facebook::react::jsin...
/* * 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 "InstanceTracingProfile.h" #include "RuntimeSamplingProfile.h" #include "TracingMode.h" #include <oscompa...
/* * 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 "TraceRecordingStateSerializer.h" #include "RuntimeSamplingProfileTraceEventSerializer.h" #include "TraceEventSerializer...
/* * 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 "TraceEvent.h" #include "TraceRecordingState.h" #include <folly/dynamic.h> #include <vector> namespace f...
/* * 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/container/small_vector.h> #include <optional> #include <set> #include <string> 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 namespace facebook::react::jsinspector_modern::tracing { enum class Mode { CDP, // Initiated by the user via Chr...
/* * 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::jsinspector_modern::tracing { // Keep in sync with `TracingState.kt...
/* * 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 "ProfileTreeNode.h" #include <gmock/gmock.h> #include <gtest/gtest.h> namespace facebook::react::jsinspector_modern::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. */ #include <jsinspector-modern/tracing/RuntimeSamplingProfileTraceEventSerializer.h> #include <jsinspector-modern/tracing/Timing.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 "JSRuntimeBindings.h" #include <react/timing/primitives.h> namespace facebook::react { void bindNativeLogger(jsi::Run...
/* * 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 <string> namespace facebook::react { using Logger = std::function<void(const std::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. */ #include "JSRuntimeFactory.h" namespace facebook::react { jsi::Runtime& JSIRuntimeHolder::getRuntime() noexcept { return *run...
/* * 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 #ifdef __cplusplus #include <jsi/jsi.h> #include <jsinspector-modern/ReactCdp.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. */ #include "JSRuntimeFactoryCAPI.h" #include "JSRuntimeFactory.h" void js_runtime_factory_destroy(JSRuntimeFactoryRef factory) { ...
/* * 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 #ifdef __cplusplus extern "C" { #endif /** JSRuntimeFactory pointer representation in C. */ typedef void *JSRunt...
/* * 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 "react_native_log.h" #include <glog/logging.h> static reactnativelogfunctype _reactnativelogfunc = nullptr; void set_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 enum ReactNativeLogLevel { ReactNativeLogLevelInfo = 1, ReactNativeLogLevelWarning = 2, ReactNativeLogLevelEr...
/* * 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::oscompat { uint64_t getCurrentProcessId(); uint64_t getCurrentThre...
/* * 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. */ #if defined(__linux__) || (defined(__APPLE__) && defined(__MACH__)) || \ defined(__ANDROID__) #include "OSCompat.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. */ #if defined(_WIN32) || defined(_MSC_VER) #include "OSCompat.h" #include <windows.h> namespace facebook::react::oscompat { uin...
/* * 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/bridging/Base.h> #include <array> #include <deque> #include <initializer_list> #include <list> #in...
/* * 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/bridging/Base.h> #include <string> #include <string_view> namespace facebook::react { template <...
/* * 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/bridging/Convert.h> #include <cstdint> #include <memory> #include <type_trait...
/* * 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/bridging/Base.h> namespace facebook::react { template <> struct Bridging<bool> { static bool fr...
/* * 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/bridging/AString.h> #include <react/bridging/Array.h> #include <react/bridging/Bool.h> #include <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 <jsi/jsi.h> #include <memory> #include <react/bridging/LongLivedObject.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 <react/bridging/Base.h> namespace facebook::react::bridging { template <typename JSReturnT, typename 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 <optional> #include <type_traits> namespace facebook::react::bridging { // std::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 <folly/dynamic.h> #include <jsi/JSIDynamic.h> namespace facebook::react { template <> struct Bridging<fo...
/* * 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/bridging/Base.h> namespace facebook::react { class Error { public: // TODO (T114055466): Retai...
/* * 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/bridging/Function.h> #include <functional> #include <memory> #include <mutex> #include <unordered_m...
/* * 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/bridging/Base.h> #include <react/bridging/CallbackWrapper.h> #include <ReactCommon/CallInvoker.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. */ #pragma once #include <react/bridging/Base.h> #include <react/timing/primitives.h> namespace facebook::react { template <> str...
/* * 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 "LongLivedObject.h" #include <unordered_map> namespace facebook::react { // LongLivedObjectCollection LongLivedObject...
/* * 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 <memory> #include <mutex> #include <unordered_set> 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 <react/bridging/Base.h> namespace facebook::react { template <> struct Bridging<double> { static doubl...
/* * 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/bridging/AString.h> #include <react/bridging/Base.h> #include <map> #include <unordered_map> name...
/* * 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/bridging/Error.h> #include <react/bridging/Function.h> #include <react/bridging/LongLivedObject.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. */ #pragma once #include <react/bridging/Base.h> #include <memory> #include <optional> namespace facebook::react { template <> 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. */ #include "BridgingTest.h" namespace facebook::react { using namespace std::literals; TEST_F(BridgingTest, jsiTest) { jsi::Va...
/* * 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/TestCallInvoker.h> #include <gtest/gtest.h> #include <hermes/hermes.h> #include <react/bridgi...
/* * 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 "BridgingTest.h" #include <utility> namespace facebook::react { using namespace std::literals; struct TestClass { ...
/* * 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 // // Preprocessor flags which control whether code meant for debugging the // internals of React Native is 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. */ #ifdef __ANDROID__ #include <android/log.h> // Provide a prototype to silence missing prototype warning in release // mode. ext...
/* * 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. */ // No header guards since it is legitimately possible to include this file more // than once with and without REACT_NATIVE_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. */ // No header guards since it is legitimately possible to include this file more // than once with and without REACT_NATIVE_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. * * @generated SignedSource<<9c10486574fdff78933aed6acd90533c>> */ /** * IMPORTANT: Do NOT modify this file directly. * * To ch...
/* * 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. * * @generated SignedSource<<72ed560f90d44db777469315e0865c6c>> */ /** * IMPORTANT: Do NOT modify this file directly. * * To ch...
/* * 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. * * @generated SignedSource<<d97cf9dd1fb1696f46aa408871a7b05c>> */ /** * IMPORTANT: Do NOT modify this file directly. * * To ch...
/* * 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. * * @generated SignedSource<<fb735bdc4e4085fd415f21894340dd75>> */ /** * IMPORTANT: Do NOT modify this file directly. * * To ch...