asyncstorage change

This commit is contained in:
feruz 2020-01-02 14:59:19 +02:00
parent 57227b23a8
commit 83be7ba839
8 changed files with 17 additions and 4 deletions

View File

@ -287,6 +287,8 @@ PODS:
- React - React
- rn-fetch-blob (0.12.0): - rn-fetch-blob (0.12.0):
- React-Core - React-Core
- RNCAsyncStorage (1.7.1):
- React
- RNGestureHandler (1.5.2): - RNGestureHandler (1.5.2):
- React - React
- RNIap (3.4.15): - RNIap (3.4.15):
@ -354,6 +356,7 @@ DEPENDENCIES:
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`) - ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- ReactNativeDarkMode (from `../node_modules/react-native-dark-mode`) - ReactNativeDarkMode (from `../node_modules/react-native-dark-mode`)
- rn-fetch-blob (from `../node_modules/rn-fetch-blob`) - rn-fetch-blob (from `../node_modules/rn-fetch-blob`)
- "RNCAsyncStorage (from `../node_modules/@react-native-community/async-storage`)"
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`) - RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
- RNIap (from `../node_modules/react-native-iap`) - RNIap (from `../node_modules/react-native-iap`)
- RNImageCropPicker (from `../node_modules/react-native-image-crop-picker`) - RNImageCropPicker (from `../node_modules/react-native-image-crop-picker`)
@ -455,6 +458,8 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-dark-mode" :path: "../node_modules/react-native-dark-mode"
rn-fetch-blob: rn-fetch-blob:
:path: "../node_modules/rn-fetch-blob" :path: "../node_modules/rn-fetch-blob"
RNCAsyncStorage:
:path: "../node_modules/@react-native-community/async-storage"
RNGestureHandler: RNGestureHandler:
:path: "../node_modules/react-native-gesture-handler" :path: "../node_modules/react-native-gesture-handler"
RNIap: RNIap:
@ -517,6 +522,7 @@ SPEC CHECKSUMS:
ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd ReactCommon: 198c7c8d3591f975e5431bec1b0b3b581aa1c5dd
ReactNativeDarkMode: bac355fdddfc07de71ceef6a324b99481eb3f1f4 ReactNativeDarkMode: bac355fdddfc07de71ceef6a324b99481eb3f1f4
rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba rn-fetch-blob: f065bb7ab7fb48dd002629f8bdcb0336602d3cba
RNCAsyncStorage: 44395cb9c7c1523104c2b499eb426ef7aff82bca
RNGestureHandler: 946a7691e41df61e2c4b1884deab41a4cdc3afff RNGestureHandler: 946a7691e41df61e2c4b1884deab41a4cdc3afff
RNIap: b4c77c8bc4501203f4b743126a05da23f10f40b4 RNIap: b4c77c8bc4501203f4b743126a05da23f10f40b4
RNImageCropPicker: e1d8c3381e5b05a1bdcd13ea57a4f1c020a09cef RNImageCropPicker: e1d8c3381e5b05a1bdcd13ea57a4f1c020a09cef

View File

@ -238,7 +238,6 @@
A387923BE57BA7D0C6C1FACF /* Pods-eSteemTests.debug.xcconfig */, A387923BE57BA7D0C6C1FACF /* Pods-eSteemTests.debug.xcconfig */,
3FCD2A7E1617723964A992ED /* Pods-eSteemTests.release.xcconfig */, 3FCD2A7E1617723964A992ED /* Pods-eSteemTests.release.xcconfig */,
); );
name = Pods;
path = Pods; path = Pods;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
@ -299,6 +298,7 @@
5898D06F234E104B00E9EE62 /* Recovered References */ = { 5898D06F234E104B00E9EE62 /* Recovered References */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
C97456BE898C00B5EDA21C2E /* libPods-eSteemTests.a */,
); );
name = "Recovered References"; name = "Recovered References";
sourceTree = "<group>"; sourceTree = "<group>";

View File

@ -28,6 +28,7 @@
"@esteemapp/react-native-multi-slider": "^1.1.0", "@esteemapp/react-native-multi-slider": "^1.1.0",
"@esteemapp/react-native-render-html": "^4.1.5", "@esteemapp/react-native-render-html": "^4.1.5",
"@esteemapp/react-native-slider": "^0.12.0", "@esteemapp/react-native-slider": "^0.12.0",
"@react-native-community/async-storage": "^1.7.1",
"@react-native-community/cameraroll": "^1.3.0", "@react-native-community/cameraroll": "^1.3.0",
"@react-native-community/netinfo": "^4.1.3", "@react-native-community/netinfo": "^4.1.3",
"appcenter": "^2.6.0", "appcenter": "^2.6.0",

View File

@ -1,5 +1,5 @@
import sha256 from 'crypto-js/sha256'; import sha256 from 'crypto-js/sha256';
import { AsyncStorage } from 'react-native'; import { AsyncStorage } from '@react-native-community/async-storage';
// CONSTANTS // CONSTANTS
const USER_SCHEMA = 'user'; const USER_SCHEMA = 'user';

View File

@ -2,7 +2,7 @@ import { createStore, applyMiddleware } from 'redux';
import logger from 'redux-logger'; import logger from 'redux-logger';
import thunk from 'redux-thunk'; import thunk from 'redux-thunk';
import { persistStore, persistReducer } from 'redux-persist'; import { persistStore, persistReducer } from 'redux-persist';
import { AsyncStorage } from 'react-native'; import { AsyncStorage } from '@react-native-community/async-storage';
import reducer from '../reducers'; import reducer from '../reducers';

View File

@ -1,9 +1,10 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { injectIntl } from 'react-intl'; import { injectIntl } from 'react-intl';
import { Alert, AsyncStorage } from 'react-native'; import { Alert } from 'react-native';
import ImagePicker from 'react-native-image-crop-picker'; import ImagePicker from 'react-native-image-crop-picker';
import get from 'lodash/get'; import get from 'lodash/get';
import { AsyncStorage } from '@react-native-community/async-storage';
// Services and Actions // Services and Actions
import { Buffer } from 'buffer'; import { Buffer } from 'buffer';

View File

@ -1366,6 +1366,11 @@
"@types/istanbul-reports" "^1.1.1" "@types/istanbul-reports" "^1.1.1"
"@types/yargs" "^13.0.0" "@types/yargs" "^13.0.0"
"@react-native-community/async-storage@^1.7.1":
version "1.7.1"
resolved "https://registry.yarnpkg.com/@react-native-community/async-storage/-/async-storage-1.7.1.tgz#ef2104d865de61ad91bba66613e57e689ff4e6a1"
integrity sha512-/oX/x+EU4xNaqIaC/epVKzO8XghzImPA7l8cLz3USEFmtFiXFjBbTeeIFjjEm/u4/cv38Wi1xMEa10PHIWygRg==
"@react-native-community/cameraroll@^1.3.0": "@react-native-community/cameraroll@^1.3.0":
version "1.3.0" version "1.3.0"
resolved "https://registry.yarnpkg.com/@react-native-community/cameraroll/-/cameraroll-1.3.0.tgz#a340334440f4d08280da839130ef51c931b07483" resolved "https://registry.yarnpkg.com/@react-native-community/cameraroll/-/cameraroll-1.3.0.tgz#a340334440f4d08280da839130ef51c931b07483"