Skip to content

Issue: no support for react native 0.76.5 version  #10

@sr1k3sh

Description

@sr1k3sh

Your Socket Mobile Developer ID

3d864c9d-5876-ef11-a670-0022480b0779

Environment

OS version: mac os
CaptureSDk version: 1.5.111
IOS

Description

While building in xcode, error on Capturesdk.h related to RNCaptureSdkSpec.h not found. it seems due to new Arch enabled on react native 0.76.5###

Steps to Reproduce

step 1: upgrade react native version to 0.76.5
step 2: build in xcode > shows the RNCaptureSdkSpec.h not found issue

Expected Behavior

to be able to build with new arch

Actual Behavior

not being able to build in IOS

Additional Context

For temp i created a patch by disabling the newArch mode

index ff01d01..03e8e19 100644
--- a/node_modules/react-native-capture/ios/Capturesdk.h
+++ b/node_modules/react-native-capture/ios/Capturesdk.h
@@ -1,13 +1,13 @@
 
-#ifdef RCT_NEW_ARCH_ENABLED
-#import "RNCaptureSdkSpec.h"
+// #ifdef RCT_NEW_ARCH_ENABLED
+// #import "RNCaptureSdkSpec.h"
 
-@interface CaptureSdk : NSObject <CaptureSdkSpec>
-#else
+//@interface CaptureSdk : NSObject <CaptureSdkSpec>
+// #else
 #import <React/RCTBridgeModule.h>
 #import <React/RCTEventEmitter.h>
 
 @interface CaptureSdk : RCTEventEmitter <RCTBridgeModule>
-#endif
+// #endif
 
 @end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions