Skip to content

Commit

Permalink
Deferred Deep Linking - Final pasteboard value support [sc-112616] (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
chayelheinsen authored Apr 24, 2024
1 parent 312aa82 commit 391ff50
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/src/main/java/com/rnmovableink/RNMovableInkModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,11 @@ class RNMovableInkModule(reactContext: ReactApplicationContext) :
}
}

@ReactMethod
func setValidPasteboardValues(values: ReadableArray) {
MIClient.validPasteboardValues(values.toArrayList())
}

companion object {
const val NAME = "RNMovableInk"
}
Expand Down
2 changes: 2 additions & 0 deletions ios/RNMovableInk.m
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ @interface RCT_EXTERN_MODULE(RNMovableInk, NSObject)

RCT_EXTERN_METHOD(showInAppMessage:(NSString *)link withCallback:(RCTResponseSenderBlock)callback)

RCT_EXTERN_METHOD(setValidPasteboardValues:(NSArray *)values)


+ (BOOL)requiresMainQueueSetup {
return TRUE;
Expand Down
5 changes: 5 additions & 0 deletions ios/RNMovableInk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,9 @@ public class RNMovableInk: NSObject {
public func identifyUser() {
MIClient.identifyUser()
}

@objc(setValidPasteboardValues:)
public func setValidPasteboardValues(values: [String]) {
MIClient.validPasteboardValues = values
}
}

0 comments on commit 391ff50

Please sign in to comment.