diff --git a/packages/react-native/ReactCommon/yoga/yoga/YGMacros.h b/packages/react-native/ReactCommon/yoga/yoga/YGMacros.h index a2b6d60efc2..ab9b2627a45 100644 --- a/packages/react-native/ReactCommon/yoga/yoga/YGMacros.h +++ b/packages/react-native/ReactCommon/yoga/yoga/YGMacros.h @@ -29,6 +29,8 @@ #ifdef _WINDLL #define YG_EXPORT __declspec(dllexport) +#elif defined(__EMSCRIPTEN__) +#define YG_EXPORT __attribute__((visibility("default"), used)) #elif !defined(_MSC_VER) #define YG_EXPORT __attribute__((visibility("default"))) #else