Browse Source

Add @react-native-community/async-storage as a peer dependency

Mathieu Acthernoene 4 years ago
parent
commit
2add28ad8f
6 changed files with 18 additions and 1 deletions
  1. 1
    0
      README.md
  2. 6
    0
      example/ios/Podfile.lock
  3. 1
    0
      example/package.json
  4. 5
    0
      example/yarn.lock
  5. 2
    1
      lib/permissions.android.js
  6. 3
    0
      package.json

+ 1
- 0
README.md View File

@@ -168,6 +168,7 @@ The current supported permissions are:
168 168
 | Phone Call         | `callPhone`         | ❌️ | ✔       |
169 169
 | Read SMS           | `readSms`           | ❌️ | ✔       |
170 170
 | Receive SMS        | `receiveSms`        | ❌️ | ✔       |
171
+| Send SMS           | `sendSms`           | ❌️ | ✔       |
171 172
 
172 173
 ### Methods
173 174
 

+ 6
- 0
example/ios/Podfile.lock View File

@@ -83,6 +83,8 @@ PODS:
83 83
     - React-fishhook (= 0.60.3)
84 84
   - ReactNativePermissions (1.2.0):
85 85
     - React
86
+  - RNCAsyncStorage (1.5.1):
87
+    - React
86 88
   - yoga (0.60.3.React)
87 89
 
88 90
 DEPENDENCIES:
@@ -108,6 +110,7 @@ DEPENDENCIES:
108 110
   - React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
109 111
   - React-RCTWebSocket (from `../node_modules/react-native/Libraries/WebSocket`)
110 112
   - ReactNativePermissions (from `../node_modules/react-native-permissions`)
113
+  - "RNCAsyncStorage (from `../node_modules/@react-native-community/async-storage`)"
111 114
   - yoga (from `../node_modules/react-native/ReactCommon/yoga`)
112 115
 
113 116
 SPEC REPOS:
@@ -159,6 +162,8 @@ EXTERNAL SOURCES:
159 162
     :path: "../node_modules/react-native/Libraries/WebSocket"
160 163
   ReactNativePermissions:
161 164
     :path: "../node_modules/react-native-permissions"
165
+  RNCAsyncStorage:
166
+    :path: "../node_modules/@react-native-community/async-storage"
162 167
   yoga:
163 168
     :path: "../node_modules/react-native/ReactCommon/yoga"
164 169
 
@@ -186,6 +191,7 @@ SPEC CHECKSUMS:
186 191
   React-RCTVibration: 5d9ed4a968e9d42880ddcc7c29bee3417c745408
187 192
   React-RCTWebSocket: 69d8565d66043f244b4129f3d7154c5689fb7d3e
188 193
   ReactNativePermissions: f3beb8871251594a8ea2c6b19a3f8252d5c7379d
194
+  RNCAsyncStorage: b63d6e83fc629b01df6b624688f17944cea5637f
189 195
   yoga: 843fe25849b56131275bf3e5da2c468e96f68aff
190 196
 
191 197
 PODFILE CHECKSUM: b88bd82c6997520c7ee360ccba0e3d9b29702a06

+ 1
- 0
example/package.json View File

@@ -8,6 +8,7 @@
8 8
     "reinstall": "rm -rf node_modules ios/Pods && yarn install && cd ios && pod install"
9 9
   },
10 10
   "dependencies": {
11
+    "@react-native-community/async-storage": "1.5.1",
11 12
     "react": "16.8.6",
12 13
     "react-native": "0.60.3",
13 14
     "react-native-permissions": "file:../"

+ 5
- 0
example/yarn.lock View File

@@ -739,6 +739,11 @@
739 739
     "@types/istanbul-reports" "^1.1.1"
740 740
     "@types/yargs" "^12.0.9"
741 741
 
742
+"@react-native-community/async-storage@1.5.1":
743
+  version "1.5.1"
744
+  resolved "https://registry.yarnpkg.com/@react-native-community/async-storage/-/async-storage-1.5.1.tgz#c496b4969eea5b91da1a5919a611046360b0c51f"
745
+  integrity sha512-Ssfx2uLYPnsuqIvDCuUOEZT6jh5AVy0U0mr2eHxNO2Syor1nfOrR/n4hTOFcBWc1wamDTGCqo+UHJpxURVXd2Q==
746
+
742 747
 "@react-native-community/cli-platform-android@^2.0.1", "@react-native-community/cli-platform-android@^2.6.2":
743 748
   version "2.6.2"
744 749
   resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-2.6.2.tgz#4e7ce8784e6b4a3139c739ce15672c9c4007b9fb"

+ 2
- 1
lib/permissions.android.js View File

@@ -1,6 +1,7 @@
1 1
 // @flow
2 2
 
3
-import {AsyncStorage, NativeModules, PermissionsAndroid} from 'react-native';
3
+import {NativeModules, PermissionsAndroid} from 'react-native';
4
+import AsyncStorage from '@react-native-community/async-storage';
4 5
 
5 6
 type Status = 'authorized' | 'denied' | 'restricted' | 'undetermined';
6 7
 type Rationale = {title: string, message: string};

+ 3
- 0
package.json View File

@@ -33,5 +33,8 @@
33 33
     "husky": "3.0.0",
34 34
     "lint-staged": "9.2.0",
35 35
     "prettier": "1.18.2"
36
+  },
37
+  "peerDependencies": {
38
+    "@react-native-community/async-storage": "^1.5.1"
36 39
   }
37 40
 }