Skip to content

Commit ce4f970

Browse files
authored
fix: update old references to @react-native-community (#466)
1 parent 1931c65 commit ce4f970

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 <[email protected]> (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
*/

0 commit comments

Comments
 (0)