mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Apply RN_EXPORT to ReactNativeFeatureFlags functions (#43356)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43356 To make it accessible across different dylib/bundle. Changelog: [Internal] Reviewed By: d16r Differential Revision: D54601288 fbshipit-source-id: e65b724b228a680784e81b8c51ecd3f4df3fd668
This commit is contained in:
1 parent
c771011fed
commit
f7bbaffdc3
2 files changed
+26
-18
No files matched your search
+7
-3
@@ -31,6 +31,10 @@ ${DO_NOT_MODIFY_COMMENT}
|
||||
#include <react/featureflags/ReactNativeFeatureFlagsProvider.h>
|
||||
#include <memory>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
/**
|
||||
@@ -47,7 +51,7 @@ ${Object.entries(definitions.common)
|
||||
` /**
|
||||
* ${flagConfig.description}
|
||||
*/
|
||||
static ${getCxxTypeFromDefaultValue(flagConfig.defaultValue)} ${flagName}();`,
|
||||
RN_EXPORT static ${getCxxTypeFromDefaultValue(flagConfig.defaultValue)} ${flagName}();`,
|
||||
)
|
||||
.join('\n\n')}
|
||||
|
||||
@@ -69,7 +73,7 @@ ${Object.entries(definitions.common)
|
||||
* std::make_unique<MyReactNativeFeatureFlags>());
|
||||
* \`\`\`
|
||||
*/
|
||||
static void override(
|
||||
RN_EXPORT static void override(
|
||||
std::unique_ptr<ReactNativeFeatureFlagsProvider> provider);
|
||||
|
||||
/**
|
||||
@@ -84,7 +88,7 @@ ${Object.entries(definitions.common)
|
||||
* call \`dangerouslyReset\` after destroying the runtime and \`override\` again
|
||||
* before initializing the new one.
|
||||
*/
|
||||
static void dangerouslyReset();
|
||||
RN_EXPORT static void dangerouslyReset();
|
||||
|
||||
private:
|
||||
ReactNativeFeatureFlags() = delete;
|
||||
|
||||
Reference in new issue
Block a user