Skip to content

Commit 816a7f4

Browse files
committed
fix: update old references to @react-native-community
1 parent 1931c65 commit 816a7f4

File tree

14 files changed

+27
-27
lines changed

14 files changed

+27
-27
lines changed

.flowconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ munge_underscores=true
3939
server.max_workers=1
4040

4141
# Support the library import in examples
42-
module.name_mapper='^\@react-native-community/async-storage$' -> '<PROJECT_ROOT>/src/AsyncStorage.js'
42+
module.name_mapper='^\@react-native-async-storage/async-storage$' -> '<PROJECT_ROOT>/src/AsyncStorage.js'
4343

4444
module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
4545
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
@@ -77,4 +77,4 @@ untyped-import
7777
untyped-type-import
7878

7979
[version]
80-
^0.105.0
80+
^0.105.0

.github/ISSUE_TEMPLATE/01_bug_report.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ label: 'Bug'
1818

1919
## Environment
2020

21-
- **Async Storage version**: <!-- @react-native-community/async-storage version set in package.json -->
21+
- **Async Storage version**: <!-- @react-native-async-storage/async-storage version set in package.json -->
2222
- **React-Native version**: <!-- React Native version set in package.json -->
2323
- **Platform tested**: <!-- iOS / Android -->
24-
- **Logs/Error that are relevant**: <!-- link to your CI logs or semantic-release logs -->
24+
- **Logs/Error that are relevant**: <!-- link to your CI logs or semantic-release logs -->

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ An asynchronous, unencrypted, persistent, key-value storage system for React Nat
77

88
- iOS
99
- Android
10-
- [Web](https://github.com/react-native-community/async-storage/releases/tag/v1.9.0)
11-
- [MacOS](https://github.com/react-native-community/async-storage/releases/tag/v1.8.1)
12-
- [Windows](https://github.com/react-native-community/async-storage/releases/tag/v1.10.0)
10+
- [Web](https://github.com/react-native-async-storage/async-storage/releases/tag/v1.9.0)
11+
- [MacOS](https://github.com/react-native-async-storage/async-storage/releases/tag/v1.8.1)
12+
- [Windows](https://github.com/react-native-async-storage/async-storage/releases/tag/v1.10.0)
1313

1414

1515
## Getting Started

example/__tests__/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
import 'react-native';
77

8-
import AsyncStorage from '@react-native-community/async-storage';
8+
import AsyncStorage from '@react-native-async-storage/async-storage';
99

1010
describe('Async Storage mock functionality', () => {
1111
describe('Promise based', () => {

example/examples/GetSetClear.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import React, {Component} from 'react';
1212
import {StyleSheet, Text, View, Button} from 'react-native';
1313

14-
import AsyncStorage from '@react-native-community/async-storage';
14+
import AsyncStorage from '@react-native-async-storage/async-storage';
1515

1616
type Props = {};
1717
type State = {

example/examples/MergeItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import React, {Component} from 'react';
1212
import {Text, View, Button, TextInput, StyleSheet} from 'react-native';
1313

14-
import AsyncStorage from '@react-native-community/async-storage';
14+
import AsyncStorage from '@react-native-async-storage/async-storage';
1515

1616
const KEY = '@@KEY';
1717

example/jest.setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
import mockAsyncStorage from '../jest/async-storage-mock';
66

7-
jest.mock('@react-native-community/async-storage', () => mockAsyncStorage);
7+
jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage);

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"contributors": [
2323
"Evan Bacon <bacon@expo.io> (https://github.com/evanbacon)"
2424
],
25-
"homepage": "https://github.com/react-native-community/react-native-async-storage#readme",
25+
"homepage": "https://github.com/react-native-async-storage/async-storage#readme",
2626
"license": "MIT",
2727
"keywords": [
2828
"react-native",
@@ -33,7 +33,7 @@
3333
],
3434
"repository": {
3535
"type": "git",
36-
"url": "https://github.com/react-native-community/react-native-async-storage.git"
36+
"url": "https://github.com/react-native-async-storage/async-storage.git"
3737
},
3838
"scripts": {
3939
"prepare": "bob build",

src/AsyncStorage.native.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ if (!RCTAsyncStorage) {
1818
1919
To fix this issue try these steps:
2020
21-
• Run \`react-native link @react-native-community/async-storage\` in the project root.
21+
• Run \`react-native link @react-native-async-storage/async-storage\` in the project root.
2222
2323
• Rebuild and restart the app.
2424
2525
• Run the packager with \`--reset-cache\` flag.
2626
2727
• If you are using CocoaPods on iOS, run \`pod install\` in the \`ios\` directory and then rebuild and re-run the app.
2828
29-
• If this happens while testing with Jest, check out docs how to integrate AsyncStorage with it: https://react-native-community.github.io/async-storage/docs/advanced/jest
29+
• If this happens while testing with Jest, check out docs how to integrate AsyncStorage with it: https://react-native-async-storage.github.io/async-storage/docs/advanced/jest
3030
31-
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-async-storage/issues
31+
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-async-storage/react-native-async-storage/issues
3232
`);
3333
}
3434

src/RCTAsyncStorage.expo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
2-
* Expo managed apps don't include the @react-native-community/async-storage
2+
* Expo managed apps don't include the @react-native-async-storage/async-storage
33
* native modules yet, but the API interface is the same, so we can use the version
44
* exported from React Native still.
55
*
6-
* If in future releases (eg: @react-native-community/async-storage >= 2.0.0) this
6+
* If in future releases (eg: @react-native-async-storage/async-storage >= 2.0.0) this
77
* will likely not be valid anymore, and the package will need to be included in the Expo SDK
88
* to continue to work.
99
*/

types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// CREDITS: This types are based on the original work made by all the people who contributed to @types/react-native
22

3-
declare module '@react-native-community/async-storage' {
3+
declare module '@react-native-async-storage/async-storage' {
44
/**
55
* AsyncStorage is a simple, unencrypted, asynchronous, persistent, key-value storage
66
* system that is global to the app. It should be used instead of LocalStorage.
@@ -14,7 +14,7 @@ declare module '@react-native-community/async-storage' {
1414
* `AsyncStorage` will use either [RocksDB](http://rocksdb.org/) or SQLite
1515
* based on what is available.
1616
*
17-
* @see https://github.com/react-native-community/react-native-async-storage/blob/master/docs/API.md
17+
* @see https://github.com/react-native-async-storage/react-native-async-storage/blob/master/docs/API.md
1818
*/
1919
export interface AsyncStorageStatic {
2020
/**

website/docs/advanced/DedicatedExecutor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import PlatformSupport from "../../src/components/Platform.js"
1010

1111
---
1212

13-
This feature would be mostly used in brownfield apps and [in edge cases with some android devices.](https://github.com/react-native-community/async-storage/issues/159)
13+
This feature would be mostly used in brownfield apps and [in edge cases with some android devices.](https://github.com/react-native-async-storage/async-storage/issues/159)
1414

1515
## Motivation
1616

website/docs/advanced/Jest-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,4 @@ AsyncStorageMock.multiGet = jest.fn(([keys], callback) => {
6666
export default AsyncStorageMock;
6767
```
6868

69-
You can [check its implementation](https://github.com/react-native-community/async-storage/blob/master/jest/async-storage-mock.js) to get more insight into methods signatures.
69+
You can [check its implementation](https://github.com/react-native-async-storage/async-storage/blob/master/jest/async-storage-mock.js) to get more insight into methods signatures.

website/docusaurus.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module.exports = {
22
title: 'Async Storage',
33
tagline: 'Data storage system for React Native.',
4-
url: 'https://react-native-community.github.io/async-storage/',
4+
url: 'https://react-native-async-storage.github.io/async-storage/',
55
baseUrl: '/async-storage/',
66
favicon: 'img/favicon.ico',
7-
organizationName: 'react-native-community',
7+
organizationName: 'react-native-async-storage',
88
projectName: 'async-storage',
99
themeConfig: {
1010
prism: {
@@ -25,7 +25,7 @@ module.exports = {
2525
position: 'right',
2626
},
2727
{
28-
href: 'https://github.com/react-native-community/async-storage',
28+
href: 'https://github.com/react-native-async-storage/async-storage',
2929
label: 'GitHub',
3030
position: 'right',
3131
},
@@ -61,7 +61,7 @@ module.exports = {
6161
items: [
6262
{
6363
label: 'GitHub',
64-
href: 'https://github.com/react-native-community/async-storage',
64+
href: 'https://github.com/react-native-async-storage/async-storage',
6565
},
6666
],
6767
},
@@ -76,7 +76,7 @@ module.exports = {
7676
docs: {
7777
sidebarPath: require.resolve('./sidebars.js'),
7878
editUrl:
79-
'https://github.com/react-native-community/async-storage/edit/master/website/',
79+
'https://github.com/react-native-async-storage/async-storage/edit/master/website/',
8080
},
8181
theme: {
8282
customCss: require.resolve('./src/css/custom.css'),

0 commit comments

Comments
 (0)