Skip to content

Commit

Permalink
chore: RCT_NEW_ARCH_ENABLED is not need for library
Browse files Browse the repository at this point in the history
  • Loading branch information
wn-na committed Nov 24, 2024
1 parent a9b6bcb commit b0e9d07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions ios/CaptureProtection.mm
Original file line number Diff line number Diff line change
Expand Up @@ -505,15 +505,5 @@ - (void) stopObserving {
reject(@"preventScreenRecord", e.reason ?: @"unknown_message", [self convertNSError:e]);
}
};
// Don't compile this code when we build for the old architecture.
#ifdef RCT_NEW_ARCH_ENABLED
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
(const facebook::react::ObjCTurboModule::InitParams &)params
{
return std::make_shared<facebook::react::NativeCaptureProtectionSpecJSI>(params);
}
#endif



@end
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-capture-protection",
"version": "1.9.13",
"version": "1.9.14",
"description": "It’s a library for React Native to control simple capture events(i.e. Screenshot or Screen record)",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down

0 comments on commit b0e9d07

Please sign in to comment.