Skip to content

Commit

Permalink
Enable ManagedObjectWrapper on react-native-macOS (#35146)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #35146

This class is used by Fabric - but does not compile on macOS yet.

Changelog:
[iOS][Fixed] Make ManagedObjectWrapper compile on macOS

Reviewed By: javache

Differential Revision: D40839241

fbshipit-source-id: 73b93a9963db89af19529fbfd60a64f4e5aaf036
  • Loading branch information
christophpurrer authored and facebook-github-bot committed Oct 31, 2022
1 parent e3e635e commit 76c7cca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ReactCommon/react/utils/ManagedObjectWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#endif

#if defined(__OBJC__) && defined(__cplusplus)
#if TARGET_OS_MAC && TARGET_OS_IPHONE
#if TARGET_OS_MAC

#include <memory>

Expand Down
4 changes: 1 addition & 3 deletions ReactCommon/react/utils/ManagedObjectWrapper.mm
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@

#include "ManagedObjectWrapper.h"

#if defined(__OBJC__) && defined(__cplusplus)
#if TARGET_OS_MAC && TARGET_OS_IPHONE
#if TARGET_OS_MAC

namespace facebook {
namespace react {
Expand All @@ -35,4 +34,3 @@ @implementation RCTInternalGenericWeakWrapper
@end

#endif
#endif

0 comments on commit 76c7cca

Please sign in to comment.