clipboard icon indicating copy to clipboard operation
clipboard copied to clipboard

Paste not possible on iOS 15.5 simulator on M1

Open pke opened this issue 2 years ago • 2 comments

Environment

System:
    OS: macOS 12.5.1
    CPU: (10) x64 Apple M1 Max
    Memory: 70.98 MB / 64.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 1.22.19 - ~/projects/release/app/node_modules/.bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
    Watchman: 2022.03.21.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.3 - /Users/xxx/.gem/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
      Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.2
      System Images: android-22 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-24 | Google APIs Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google ARM64-V8a Play ARM 64 v8a, android-29 | Google APIs Intel x86 Atom, android-29 | Google Play ARM 64 v8a, android-29 | Google Play Intel x86 Atom, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play ARM 64 v8a, android-31 | Google Play ARM 64 v8a, android-32 | Google Play ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2021.2 AI-212.5712.43.2112.8512546
    Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
  Languages:
    Java: javac 18 - /usr/local/opt/openjdk/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.66.3 => 0.66.3 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Platforms

iOS

Versions

  • iOS: 15.5

Description

Pasting text on the simulator displays the toast that the app requested clipboard text but no text is ever pasted. Neither via context menu nor programmatically. Other non-react-native apps have no problem pasting the same text.

This seems related https://github.com/flutter/flutter/issues/74970

pke avatar Sep 01 '22 08:09 pke

this is problem for me too. any solutions?

nikitph avatar Sep 27 '22 06:09 nikitph

Seems to me that the iOS methods are undocumented and are getImageJPG and getImagePNG

https://github.com/react-native-clipboard/clipboard/blob/02989b59cdb0e5c3ef0002c50bed0700d2c4c72a/ios/RNCClipboard.m#L105

mfbx9da4 avatar Feb 13 '23 11:02 mfbx9da4