mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-01 01:59:10 +00:00
[change] Clipboard.isSupported -> Clipboard.isAvailable
Rename this method to be consistent with AppState.isAvailable
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
export default class Clipboard {
|
export default class Clipboard {
|
||||||
static isSupported() {
|
static isAvailable() {
|
||||||
return (
|
return (
|
||||||
typeof document.queryCommandSupported === 'function' && document.queryCommandSupported('copy')
|
typeof document.queryCommandSupported === 'function' && document.queryCommandSupported('copy')
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user