Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/react-native/ReactAndroid/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ val preparePrefab by
Pair("../ReactCommon/cxxreact/React/", "React/"),
// react_featureflags
Pair("../ReactCommon/react/featureflags/", "react/featureflags/"),
Pair("../ReactCommon/react/featureflags/React/", "React/"),
// react_devtoolsruntimesettings
Pair(
"../ReactCommon/react/devtoolsruntimesettings/",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ file(GLOB react_featureflags_SRC CONFIGURE_DEPENDS *.cpp)
add_library(react_featureflags OBJECT ${react_featureflags_SRC})

target_include_directories(react_featureflags PUBLIC ${REACT_COMMON_DIR})
target_include_directories(react_featureflags INTERFACE ${REACT_COMMON_DIR}/react/featureflags)

target_link_libraries(react_featureflags folly_runtime react_cxxstableapi)
target_compile_reactnative_options(react_featureflags PRIVATE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,5 @@ Pod::Spec.new do |s|
add_rn_third_party_dependencies(s)
add_rncore_dependency(s)

s.subspec "featureflagsUmbrella" do |ss|
ss.source_files = "React/*.h"
ss.header_dir = ""
ss.header_mappings_dir = "."
end

mark_as_react_native_build(s)
end

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<03873d0e7381921dc1ed1372eec991c0>>
* @generated SignedSource<<4c93a39dd2a8ee5ba24f3f8bc99ac1ae>>
*/

/**
Expand All @@ -19,7 +19,7 @@

#pragma once

#include <react/cxxstableapi/UmbrellaGuard.h>
#include <react/cxxstableapi/PrivateGuard.h>

#include <react/featureflags/ReactNativeFeatureFlagsAccessor.h>
#include <react/featureflags/ReactNativeFeatureFlagsProvider.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<bd4f6cafcd3c1bd4217792d0cf25dbe5>>
* @generated SignedSource<<3e557788d6bd43975af8dcb392beef94>>
*/

/**
Expand All @@ -19,7 +19,7 @@

#pragma once

#include <react/cxxstableapi/UmbrellaGuard.h>
#include <react/cxxstableapi/PrivateGuard.h>

#include <react/featureflags/ReactNativeFeatureFlagsProvider.h>
#include <array>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<f09ab21f8e13dddf1b548cb8e156837e>>
* @generated SignedSource<<07754aa6f05f6219f95a7b9a2e83ba49>>
*/

/**
Expand All @@ -19,7 +19,7 @@

#pragma once

#include <react/cxxstableapi/UmbrellaGuard.h>
#include <react/cxxstableapi/PrivateGuard.h>

#include <react/featureflags/ReactNativeFeatureFlagsProvider.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<ae3d44a13f9aa325303d58a5f50aac51>>
* @generated SignedSource<<feee721a90dc8eb3371e87778bdbccc7>>
*/

/**
Expand All @@ -19,7 +19,7 @@

#pragma once

#include <react/cxxstableapi/UmbrellaGuard.h>
#include <react/cxxstableapi/PrivateGuard.h>

#include <folly/dynamic.h>
#include <react/featureflags/ReactNativeFeatureFlagsDefaults.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<c26b8f81fcc99469d0535a89bac18280>>
* @generated SignedSource<<94c1abd04adec2f81634da6786979552>>
*/

/**
Expand All @@ -19,7 +19,7 @@

#pragma once

#include <react/cxxstableapi/UmbrellaGuard.h>
#include <react/cxxstableapi/PrivateGuard.h>

#include <react/featureflags/ReactNativeFeatureFlagsOverridesOSSStable.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<ed015255bfc4c47dfb63b99bc8146b78>>
* @generated SignedSource<<03cfd37618eb47d4612a78af04c9332f>>
*/

/**
Expand All @@ -19,7 +19,7 @@

#pragma once

#include <react/cxxstableapi/UmbrellaGuard.h>
#include <react/cxxstableapi/PrivateGuard.h>

#include <react/featureflags/ReactNativeFeatureFlagsOverridesOSSCanary.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#pragma once

#include <react/cxxstableapi/UmbrellaGuard.h>
#include <react/cxxstableapi/PrivateGuard.h>

#include <react/featureflags/ReactNativeFeatureFlagsDefaults.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<51165e8390c454fe7f3bb07bb3a69bb9>>
* @generated SignedSource<<bad95ec81f97c64414c52106fd0a1b7e>>
*/

/**
Expand All @@ -19,7 +19,7 @@

#pragma once

#include <react/cxxstableapi/UmbrellaGuard.h>
#include <react/cxxstableapi/PrivateGuard.h>

namespace facebook::react {

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* 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<<95f86b3476aeff097f532b10cabf067e>>
*/

/**
* IMPORTANT: Do NOT modify this file directly.
*
* To change the definition of the flags, edit
* packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js.
*
* To regenerate this code, run the following script from the repo root:
* yarn featureflags --update
*/

#include "ReactNativeFeatureFlags.h"
#include "ReactNativePublicFeatureFlags.h"

namespace facebook::react {

bool ReactNativeFeatureFlags_DO_NOT_USE::enableAccumulatedUpdatesInRawPropsAndroid() {
return ReactNativeFeatureFlags::enableAccumulatedUpdatesInRawPropsAndroid();
}

bool ReactNativeFeatureFlags_DO_NOT_USE::enableCppPropsIteratorSetter() {
return ReactNativeFeatureFlags::enableCppPropsIteratorSetter();
}

bool ReactNativeFeatureFlags_DO_NOT_USE::enableExclusivePropsUpdateAndroid() {
return ReactNativeFeatureFlags::enableExclusivePropsUpdateAndroid();
}

bool ReactNativeFeatureFlags_DO_NOT_USE::enableNativeCSSParsing() {
return ReactNativeFeatureFlags::enableNativeCSSParsing();
}

bool ReactNativeFeatureFlags_DO_NOT_USE::enablePropsUpdateReconciliationAndroid() {
return ReactNativeFeatureFlags::enablePropsUpdateReconciliationAndroid();
}

bool ReactNativeFeatureFlags_DO_NOT_USE::useSharedAnimatedBackend() {
return ReactNativeFeatureFlags::useSharedAnimatedBackend();
}

} // namespace facebook::react
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* 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<<39037a69a47b86d0c6643d90f4058002>>
*/

/**
* IMPORTANT: Do NOT modify this file directly.
*
* To change the definition of the flags, edit
* packages/react-native/scripts/featureflags/ReactNativeFeatureFlags.config.js.
*
* To regenerate this code, run the following script from the repo root:
* yarn featureflags --update
*/

#pragma once

#include <string>

#ifndef RN_EXPORT
#define RN_EXPORT __attribute__((visibility("default")))
#endif

namespace facebook::react {

/**
* This class provides public access to select internal React Native feature flags.
*/
class ReactNativeFeatureFlags_DO_NOT_USE {
public:
/**
* When enabled, Android will accumulate updates in rawProps to reduce the number of mounting instructions for cascading re-renders.
*/
RN_EXPORT static bool enableAccumulatedUpdatesInRawPropsAndroid();

/**
* Enable prop iterator setter-style construction of Props in C++ (this flag is not used in Java).
*/
RN_EXPORT static bool enableCppPropsIteratorSetter();

/**
* When enabled, Android will disable Props 1.5 raw value merging when Props 2.0 is available.
*/
RN_EXPORT static bool enableExclusivePropsUpdateAndroid();

/**
* Parse CSS strings using the Fabric CSS parser instead of ViewConfig processing
*/
RN_EXPORT static bool enableNativeCSSParsing();

/**
* When enabled, Android will receive prop updates based on the differences between the last rendered shadow node and the last committed shadow node.
*/
RN_EXPORT static bool enablePropsUpdateReconciliationAndroid();

/**
* Use shared animation backend in C++ Animated
*/
RN_EXPORT static bool useSharedAnimatedBackend();
};

} // namespace facebook::react
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <react/cxxstableapi/UmbrellaGuard.h>

#include <ReactCommon/CallInvoker.h>
#include <React/CallInvoker.h>
#include <ReactCommon/TurboModule.h>
#include <functional>
#include <memory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@

#include <jsi/jsi.h>

#include <ReactCommon/CallInvoker.h>
#include <react/bridging/EventEmitter.h>
#include <React/Bridging.h>
#include <React/CallInvoker.h>

namespace facebook::react {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

#include <string>

#include <React/Bridging.h>
#include <jsi/jsi.h>
#include <react/bridging/LongLivedObject.h>

#include <ReactCommon/TurboModule.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

#include <react/cxxstableapi/UmbrellaGuard.h>

#include <React/Bridging.h>
#include <jsi/jsi.h>
#include <react/bridging/LongLivedObject.h>
#include <cassert>
#include <functional>
#include <string>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <react/cxxstableapi/UmbrellaGuard.h>

#include <ReactCommon/CallInvoker.h>
#include <React/CallInvoker.h>
#include <jsi/jsi.h>

namespace facebook::react {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

#include <string>

#include <ReactCommon/CallInvoker.h>
#include <React/Bridging.h>
#include <React/CallInvoker.h>
#include <ReactCommon/TurboModule.h>
#include <jsi/jsi.h>
#include <react/bridging/CallbackWrapper.h>
#include <react/jni/JCallback.h>

namespace facebook::react {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ Pod::Spec.new do |s|
s.source_files = podspec_sources("ReactCommon/**/*.{mm,cpp,h}", "ReactCommon/**/*.{h}")

s.dependency "ReactCommon/turbomodule/core"
s.dependency "ReactCommon/turbomodule/coreUmbrella"
s.dependency "React-bridging"
s.dependency "React-callinvoker"
s.dependency "React-Core"
Expand Down
Loading
Loading