Jairaj Patel
Jairaj Patel

Reputation: 11

Clipboard.setString works in Android but not in iOS

I'm using react 17 and @react-native-clipboard/clipboard library to copy text in clipboard.

Clipboard.setString method it works on Android but not in iOS.

Anyone have an idea of how can I fix this?

I have already tried to run pod install, resetting the cache, reopen the simulator etc.

Upvotes: 0

Views: 936

Answers (1)

Adil kasbaoui
Adil kasbaoui

Reputation: 663

You can use Clipboard directly from React Native:

import { Clipboard } from 'react-native';

Upvotes: 1

Related Questions