Skip to content

Commit

Permalink
Add Clipboard module to base packages (#44881)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #44881

Updates the companion object for `ClipboardModule` to re-export the generated parent's `NAME`.

Changelog: [Internal]

Differential Revision: D58426185

fbshipit-source-id: a60462a990003413f9b0c646a97026217a64b418
  • Loading branch information
Abbondanzo authored and facebook-github-bot committed Jun 13, 2024
1 parent 3753b7a commit 0ad107b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/react-native/ReactAndroid/api/ReactAndroid.api
Original file line number Diff line number Diff line change
Expand Up @@ -3083,11 +3083,16 @@ public final class com/facebook/react/modules/camera/ImageStoreManager$Companion
}

public final class com/facebook/react/modules/clipboard/ClipboardModule : com/facebook/fbreact/specs/NativeClipboardSpec {
public static final field Companion Lcom/facebook/react/modules/clipboard/ClipboardModule$Companion;
public static final field NAME Ljava/lang/String;
public fun <init> (Lcom/facebook/react/bridge/ReactApplicationContext;)V
public fun getString (Lcom/facebook/react/bridge/Promise;)V
public fun setString (Ljava/lang/String;)V
}

public final class com/facebook/react/modules/clipboard/ClipboardModule$Companion {
}

public final class com/facebook/react/modules/common/ModuleDataCleaner {
public static final field INSTANCE Lcom/facebook/react/modules/common/ModuleDataCleaner;
public static final fun cleanDataFromModules (Lcom/facebook/react/bridge/ReactContext;)V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,8 @@ public class ClipboardModule(context: ReactApplicationContext) : NativeClipboard
val clipdata: ClipData = ClipData.newPlainText(null, text)
clipboardService.setPrimaryClip(clipdata)
}

public companion object {
public const val NAME: String = NativeClipboardSpec.NAME
}
}

0 comments on commit 0ad107b

Please sign in to comment.