Skip to content

Commit 2add28a

Browse files
committed
Add @react-native-community/async-storage as a peer dependency
1 parent 798128b commit 2add28a

File tree

6 files changed

+18
-1
lines changed

6 files changed

+18
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ The current supported permissions are:
168168
| Phone Call | `callPhone` | ❌️ ||
169169
| Read SMS | `readSms` | ❌️ ||
170170
| Receive SMS | `receiveSms` | ❌️ ||
171+
| Send SMS | `sendSms` | ❌️ ||
171172

172173
### Methods
173174

example/ios/Podfile.lock

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ PODS:
8383
- React-fishhook (= 0.60.3)
8484
- ReactNativePermissions (1.2.0):
8585
- React
86+
- RNCAsyncStorage (1.5.1):
87+
- React
8688
- yoga (0.60.3.React)
8789

8890
DEPENDENCIES:
@@ -108,6 +110,7 @@ DEPENDENCIES:
108110
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
109111
- React-RCTWebSocket (from `../node_modules/react-native/Libraries/WebSocket`)
110112
- ReactNativePermissions (from `../node_modules/react-native-permissions`)
113+
- "RNCAsyncStorage (from `../node_modules/@react-native-community/async-storage`)"
111114
- yoga (from `../node_modules/react-native/ReactCommon/yoga`)
112115

113116
SPEC REPOS:
@@ -159,6 +162,8 @@ EXTERNAL SOURCES:
159162
:path: "../node_modules/react-native/Libraries/WebSocket"
160163
ReactNativePermissions:
161164
:path: "../node_modules/react-native-permissions"
165+
RNCAsyncStorage:
166+
:path: "../node_modules/@react-native-community/async-storage"
162167
yoga:
163168
:path: "../node_modules/react-native/ReactCommon/yoga"
164169

@@ -186,6 +191,7 @@ SPEC CHECKSUMS:
186191
React-RCTVibration: 5d9ed4a968e9d42880ddcc7c29bee3417c745408
187192
React-RCTWebSocket: 69d8565d66043f244b4129f3d7154c5689fb7d3e
188193
ReactNativePermissions: f3beb8871251594a8ea2c6b19a3f8252d5c7379d
194+
RNCAsyncStorage: b63d6e83fc629b01df6b624688f17944cea5637f
189195
yoga: 843fe25849b56131275bf3e5da2c468e96f68aff
190196

191197
PODFILE CHECKSUM: b88bd82c6997520c7ee360ccba0e3d9b29702a06

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"reinstall": "rm -rf node_modules ios/Pods && yarn install && cd ios && pod install"
99
},
1010
"dependencies": {
11+
"@react-native-community/async-storage": "1.5.1",
1112
"react": "16.8.6",
1213
"react-native": "0.60.3",
1314
"react-native-permissions": "file:../"

example/yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,11 @@
739739
"@types/istanbul-reports" "^1.1.1"
740740
"@types/yargs" "^12.0.9"
741741

742+
"@react-native-community/[email protected]":
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+
742747
"@react-native-community/cli-platform-android@^2.0.1", "@react-native-community/cli-platform-android@^2.6.2":
743748
version "2.6.2"
744749
resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-2.6.2.tgz#4e7ce8784e6b4a3139c739ce15672c9c4007b9fb"

lib/permissions.android.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// @flow
22

3-
import {AsyncStorage, NativeModules, PermissionsAndroid} from 'react-native';
3+
import {NativeModules, PermissionsAndroid} from 'react-native';
4+
import AsyncStorage from '@react-native-community/async-storage';
45

56
type Status = 'authorized' | 'denied' | 'restricted' | 'undetermined';
67
type Rationale = {title: string, message: string};

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,8 @@
3333
"husky": "3.0.0",
3434
"lint-staged": "9.2.0",
3535
"prettier": "1.18.2"
36+
},
37+
"peerDependencies": {
38+
"@react-native-community/async-storage": "^1.5.1"
3639
}
3740
}

0 commit comments

Comments
 (0)