You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

15 line
274 B

  1. #import "LessPassClipboardModule.h"
  2. @implementation LessPassClipboardModule
  3. RCT_EXPORT_MODULE(LessPassClipboard);
  4. RCT_EXPORT_METHOD(copy:(NSString *)content)
  5. {
  6. UIPasteboard *clipboard = [UIPasteboard generalPasteboard];
  7. clipboard.string = (content ? : @"");
  8. }
  9. @end