Skip to content

fix: update old references to @react-native-community #466

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
Oct 22, 2020
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ munge_underscores=true
server.max_workers=1

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

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

[version]
^0.105.0
^0.105.0
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/01_bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ label: 'Bug'

## Environment

- **Async Storage version**: <!-- @react-native-community/async-storage version set in package.json -->
- **Async Storage version**: <!-- @react-native-async-storage/async-storage version set in package.json -->
- **React-Native version**: <!-- React Native version set in package.json -->
- **Platform tested**: <!-- iOS / Android -->
- **Logs/Error that are relevant**: <!-- link to your CI logs or semantic-release logs -->
- **Logs/Error that are relevant**: <!-- link to your CI logs or semantic-release logs -->
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ An asynchronous, unencrypted, persistent, key-value storage system for React Nat

- iOS
- Android
- [Web](https://github.com/react-native-community/async-storage/releases/tag/v1.9.0)
- [MacOS](https://github.com/react-native-community/async-storage/releases/tag/v1.8.1)
- [Windows](https://github.com/react-native-community/async-storage/releases/tag/v1.10.0)
- [Web](https://github.com/react-native-async-storage/async-storage/releases/tag/v1.9.0)
- [MacOS](https://github.com/react-native-async-storage/async-storage/releases/tag/v1.8.1)
- [Windows](https://github.com/react-native-async-storage/async-storage/releases/tag/v1.10.0)


## Getting Started
Expand Down
2 changes: 1 addition & 1 deletion example/__tests__/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import 'react-native';

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

describe('Async Storage mock functionality', () => {
describe('Promise based', () => {
Expand Down
2 changes: 1 addition & 1 deletion example/examples/GetSetClear.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import React, {Component} from 'react';
import {StyleSheet, Text, View, Button} from 'react-native';

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

type Props = {};
type State = {
Expand Down
2 changes: 1 addition & 1 deletion example/examples/MergeItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import React, {Component} from 'react';
import {Text, View, Button, TextInput, StyleSheet} from 'react-native';

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

const KEY = '@@KEY';

Expand Down
2 changes: 1 addition & 1 deletion example/jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

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

jest.mock('@react-native-community/async-storage', () => mockAsyncStorage);
jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage);
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"contributors": [
"Evan Bacon <[email protected]> (https://github.com/evanbacon)"
],
"homepage": "https://github.com/react-native-community/react-native-async-storage#readme",
"homepage": "https://github.com/react-native-async-storage/async-storage#readme",
"license": "MIT",
"keywords": [
"react-native",
Expand All @@ -33,7 +33,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/react-native-community/react-native-async-storage.git"
"url": "https://github.com/react-native-async-storage/async-storage.git"
},
"scripts": {
"prepare": "bob build",
Expand Down
6 changes: 3 additions & 3 deletions src/AsyncStorage.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ if (!RCTAsyncStorage) {

To fix this issue try these steps:

• Run \`react-native link @react-native-community/async-storage\` in the project root.
• Run \`react-native link @react-native-async-storage/async-storage\` in the project root.

• Rebuild and restart the app.

• Run the packager with \`--reset-cache\` flag.

• If you are using CocoaPods on iOS, run \`pod install\` in the \`ios\` directory and then rebuild and re-run the app.

• 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
• 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

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
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
`);
}

Expand Down
4 changes: 2 additions & 2 deletions src/RCTAsyncStorage.expo.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* Expo managed apps don't include the @react-native-community/async-storage
* Expo managed apps don't include the @react-native-async-storage/async-storage
* native modules yet, but the API interface is the same, so we can use the version
* exported from React Native still.
*
* If in future releases (eg: @react-native-community/async-storage >= 2.0.0) this
* If in future releases (eg: @react-native-async-storage/async-storage >= 2.0.0) this
* will likely not be valid anymore, and the package will need to be included in the Expo SDK
* to continue to work.
*/
Expand Down
4 changes: 2 additions & 2 deletions types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// CREDITS: This types are based on the original work made by all the people who contributed to @types/react-native

declare module '@react-native-community/async-storage' {
declare module '@react-native-async-storage/async-storage' {
/**
* AsyncStorage is a simple, unencrypted, asynchronous, persistent, key-value storage
* system that is global to the app. It should be used instead of LocalStorage.
Expand All @@ -14,7 +14,7 @@ declare module '@react-native-community/async-storage' {
* `AsyncStorage` will use either [RocksDB](http://rocksdb.org/) or SQLite
* based on what is available.
*
* @see https://github.com/react-native-community/react-native-async-storage/blob/master/docs/API.md
* @see https://github.com/react-native-async-storage/react-native-async-storage/blob/master/docs/API.md
*/
export interface AsyncStorageStatic {
/**
Expand Down
2 changes: 1 addition & 1 deletion website/docs/advanced/DedicatedExecutor.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import PlatformSupport from "../../src/components/Platform.js"

---

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)
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)

## Motivation

Expand Down
2 changes: 1 addition & 1 deletion website/docs/advanced/Jest-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ AsyncStorageMock.multiGet = jest.fn(([keys], callback) => {
export default AsyncStorageMock;
```

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.
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.
10 changes: 5 additions & 5 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
title: 'Async Storage',
tagline: 'Data storage system for React Native.',
url: 'https://react-native-community.github.io/async-storage/',
url: 'https://react-native-async-storage.github.io/async-storage/',
baseUrl: '/async-storage/',
favicon: 'img/favicon.ico',
organizationName: 'react-native-community',
organizationName: 'react-native-async-storage',
projectName: 'async-storage',
themeConfig: {
prism: {
Expand All @@ -25,7 +25,7 @@ module.exports = {
position: 'right',
},
{
href: 'https://github.com/react-native-community/async-storage',
href: 'https://github.com/react-native-async-storage/async-storage',
label: 'GitHub',
position: 'right',
},
Expand Down Expand Up @@ -61,7 +61,7 @@ module.exports = {
items: [
{
label: 'GitHub',
href: 'https://github.com/react-native-community/async-storage',
href: 'https://github.com/react-native-async-storage/async-storage',
},
],
},
Expand All @@ -76,7 +76,7 @@ module.exports = {
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/react-native-community/async-storage/edit/master/website/',
'https://github.com/react-native-async-storage/async-storage/edit/master/website/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down