Skip to content

update react native doc links with new docs url #306

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions lib/AsyncStorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function checkValidInput(usedKey: string, value: any) {
* storage system that is global to the app. It should be used instead of
* LocalStorage.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html
* See http://reactnative.dev/docs/asyncstorage.html
*/
const AsyncStorage = {
_getRequests: ([]: Array<MultiRequest>),
Expand All @@ -89,7 +89,7 @@ const AsyncStorage = {
/**
* Fetches an item for a `key` and invokes a callback upon completion.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#getitem
* See http://reactnative.dev/docs/asyncstorage.html#getitem
*/
getItem: function(
key: string,
Expand All @@ -114,7 +114,7 @@ const AsyncStorage = {
/**
* Sets the value for a `key` and invokes a callback upon completion.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#setitem
* See http://reactnative.dev/docs/asyncstorage.html#setitem
*/
setItem: function(
key: string,
Expand All @@ -138,7 +138,7 @@ const AsyncStorage = {
/**
* Removes an item for a `key` and invokes a callback upon completion.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#removeitem
* See http://reactnative.dev/docs/asyncstorage.html#removeitem
*/
removeItem: function(
key: string,
Expand All @@ -164,7 +164,7 @@ const AsyncStorage = {
*
* **NOTE:** This is not supported by all native implementations.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#mergeitem
* See http://reactnative.dev/docs/asyncstorage.html#mergeitem
*/
mergeItem: function(
key: string,
Expand All @@ -190,7 +190,7 @@ const AsyncStorage = {
* don't want to call this; use `removeItem` or `multiRemove` to clear only
* your app's keys.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#clear
* See http://reactnative.dev/docs/asyncstorage.html#clear
*/
clear: function(callback?: ?(error: ?Error) => void): Promise<null> {
return new Promise((resolve, reject) => {
Expand All @@ -209,7 +209,7 @@ const AsyncStorage = {
/**
* Gets *all* keys known to your app; for all callers, libraries, etc.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#getallkeys
* See http://reactnative.dev/docs/asyncstorage.html#getallkeys
*/
getAllKeys: function(
callback?: ?(error: ?Error, keys: ?ReadOnlyArrayString) => void,
Expand Down Expand Up @@ -240,7 +240,7 @@ const AsyncStorage = {
/**
* Flushes any pending requests using a single batch call to get the data.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#flushgetrequests
* See http://reactnative.dev/docs/asyncstorage.html#flushgetrequests
* */
flushGetRequests: function(): void {
const getRequests = this._getRequests;
Expand Down Expand Up @@ -278,7 +278,7 @@ const AsyncStorage = {
* inputs. Your callback will be invoked with an array of corresponding
* key-value pairs found.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#multiget
* See http://reactnative.dev/docs/asyncstorage.html#multiget
*/
multiGet: function(
keys: Array<string>,
Expand Down Expand Up @@ -320,7 +320,7 @@ const AsyncStorage = {
* Use this as a batch operation for storing multiple key-value pairs. When
* the operation completes you'll get a single callback with any errors.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#multiset
* See http://reactnative.dev/docs/asyncstorage.html#multiset
*/
multiSet: function(
keyValuePairs: Array<Array<string>>,
Expand All @@ -346,7 +346,7 @@ const AsyncStorage = {
/**
* Call this to batch the deletion of all keys in the `keys` array.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#multiremove
* See http://reactnative.dev/docs/asyncstorage.html#multiremove
*/
multiRemove: function(
keys: Array<string>,
Expand All @@ -373,7 +373,7 @@ const AsyncStorage = {
*
* **NOTE**: This is not supported by all native implementations.
*
* See http://facebook.github.io/react-native/docs/asyncstorage.html#multimerge
* See http://reactnative.dev/docs/asyncstorage.html#multimerge
*/
multiMerge: function(
keyValuePairs: Array<Array<string>>,
Expand Down