OPS: Replace deprecated Clipboard

This commit is contained in:
marcosrdz 2020-06-09 17:02:25 -04:00 committed by Overtorment
parent 2f47778c77
commit ebe02fdfbf
8 changed files with 22 additions and 8 deletions

3
App.js
View file

@ -1,6 +1,7 @@
import 'react-native-gesture-handler'; // should be on top
import React from 'react';
import { Linking, DeviceEventEmitter, AppState, Clipboard, StyleSheet, KeyboardAvoidingView, Platform, View } from 'react-native';
import { Linking, DeviceEventEmitter, AppState, StyleSheet, KeyboardAvoidingView, Platform, View } from 'react-native';
import Clipboard from '@react-native-community/clipboard';
import Modal from 'react-native-modal';
import { NavigationContainer, CommonActions } from '@react-navigation/native';
import { SafeAreaProvider } from 'react-native-safe-area-context';

View file

@ -18,11 +18,11 @@ import {
Keyboard,
SafeAreaView,
InputAccessoryView,
Clipboard,
Platform,
FlatList,
TextInput,
} from 'react-native';
import Clipboard from '@react-native-community/clipboard';
import LinearGradient from 'react-native-linear-gradient';
import { LightningCustodianWallet, PlaceholderWallet } from './class';
import Carousel from 'react-native-snap-carousel';

View file

@ -257,7 +257,9 @@ PODS:
- React
- RemobileReactNativeQrcodeLocalImage (1.0.4):
- React
- RNCAsyncStorage (1.10.0):
- RNCAsyncStorage (1.10.3):
- React
- RNCClipboard (1.2.2):
- React
- RNCMaskedView (0.1.10):
- React
@ -345,6 +347,7 @@ DEPENDENCIES:
- ReactNativePrivacySnapshot (from `../node_modules/react-native-privacy-snapshot`)
- "RemobileReactNativeQrcodeLocalImage (from `../node_modules/@remobile/react-native-qrcode-local-image`)"
- "RNCAsyncStorage (from `../node_modules/@react-native-community/async-storage`)"
- "RNCClipboard (from `../node_modules/@react-native-community/clipboard`)"
- "RNCMaskedView (from `../node_modules/@react-native-community/masked-view`)"
- RNDefaultPreference (from `../node_modules/react-native-default-preference`)
- RNDeviceInfo (from `../node_modules/react-native-device-info`)
@ -453,6 +456,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/@remobile/react-native-qrcode-local-image"
RNCAsyncStorage:
:path: "../node_modules/@react-native-community/async-storage"
RNCClipboard:
:path: "../node_modules/@react-native-community/clipboard"
RNCMaskedView:
:path: "../node_modules/@react-native-community/masked-view"
RNDefaultPreference:
@ -533,7 +538,8 @@ SPEC CHECKSUMS:
ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd
ReactNativePrivacySnapshot: cc295e45dc22810e9ff2c93380d643de20a77015
RemobileReactNativeQrcodeLocalImage: 57aadc12896b148fb5e04bc7c6805f3565f5c3fa
RNCAsyncStorage: b34d2399d3e25db01d5b881949b503bd3c224d57
RNCAsyncStorage: 62559ca9a3e7790bac152a3e69bdd9ca349d37bd
RNCClipboard: a254f6e568bc713b7ef49646e216661369882030
RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459
RNDefaultPreference: 21816c0a6f61a2829ccc0cef034392e9b509ee5f
RNDeviceInfo: 12faae605ba42a1a5041c3c41a77834bc23f049d

5
package-lock.json generated
View file

@ -2027,6 +2027,11 @@
"resolved": "https://registry.npmjs.org/@react-native-community/cli-types/-/cli-types-3.0.0.tgz",
"integrity": "sha512-ng6Tm537E/M42GjE4TRUxQyL8sRfClcL7bQWblOCoxPZzJ2J3bdALsjeG3vDnVCIfI/R0AeFalN9KjMt0+Z/Zg=="
},
"@react-native-community/clipboard": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/@react-native-community/clipboard/-/clipboard-1.2.2.tgz",
"integrity": "sha512-WJkJSWA/fhuBhHL3rh6UDdB8+AZNMvAHoyo/ERnNxl9KZqruq7K+AIaQQlggEAsIVBIhjKt65fT+Zynj7gF8Cg=="
},
"@react-native-community/eslint-config": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/@react-native-community/eslint-config/-/eslint-config-1.1.0.tgz",

View file

@ -61,6 +61,7 @@
"@babel/preset-env": "7.9.6",
"@react-native-community/async-storage": "1.10.3",
"@react-native-community/blur": "3.6.0",
"@react-native-community/clipboard": "1.2.2",
"@react-native-community/masked-view": "0.1.10",
"@react-native-community/slider": "2.0.8",
"@react-navigation/native": "5.5.0",

View file

@ -6,7 +6,6 @@ import {
ScrollView,
Linking,
TouchableOpacity,
Clipboard,
StyleSheet,
TouchableWithoutFeedback,
Keyboard,
@ -15,6 +14,7 @@ import {
Platform,
PermissionsAndroid,
} from 'react-native';
import Clipboard from '@react-native-community/clipboard';
import { BlueNavigationStyle, SafeBlueArea, BlueCard, BlueText } from '../../BlueComponents';
import PropTypes from 'prop-types';
import Privacy from '../../Privacy';

View file

@ -8,14 +8,14 @@ import {
Dimensions,
Image,
TextInput,
Clipboard,
Linking,
Platform,
Text,
PermissionsAndroid,
StyleSheet,
} from 'react-native';
import QRCode from 'react-native-qrcode-svg';
import { Text } from 'react-native-elements';
import Clipboard from '@react-native-community/clipboard';
import {
BlueButton,
BlueText,

View file

@ -1,6 +1,7 @@
/* global alert */
import React, { Component } from 'react';
import { ActivityIndicator, View, TextInput, TouchableOpacity, Linking, Clipboard, ScrollView, StyleSheet } from 'react-native';
import { ActivityIndicator, View, TextInput, TouchableOpacity, Linking, ScrollView, StyleSheet } from 'react-native';
import Clipboard from '@react-native-community/clipboard';
import {
BlueSpacing20,
BlueReplaceFeeSuggestions,