Skip to content

Commit dfa0afa

Browse files
author
Krzysztof Borowy
committed
docs: remove old org
1 parent 2f2f8ae commit dfa0afa

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

website/docs/API.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ You can replace your `App.js` with the following to see it in action.
543543
```jsx
544544
import React, { useState, useEffect } from 'react';
545545
import { View, Text, TouchableOpacity } from 'react-native';
546-
import { useAsyncStorage } from '@react-native-community/async-storage';
546+
import { useAsyncStorage } from '@react-native-async-storage/async-storage';
547547

548548
export default function App() {
549549
const [value, setValue] = useState('value');

website/docs/Installation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sidebar_label: Installation
99
### Get library
1010

1111
```bash
12-
yarn add @react-native-community/async-storage
12+
yarn add @react-native-async-storage/async-storage
1313
```
1414

1515
### Link
@@ -28,7 +28,7 @@ npx pod-install
2828

2929

3030
```bash
31-
react-native link @react-native-community/async-storage
31+
react-native link @react-native-async-storage/async-storage
3232
```
3333

3434
*Note:* For `Windows` the [manual linking](Linking.md) is currently the only linking option.

website/docs/Linking.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ sidebar_label: Manual linking
1313

1414
2. Right click on the Libraries folder and select `Add files to "yourProjectName"`.
1515

16-
3. Add `RNCAsyncStorage.xcodeproj` (located at `node_modules/@react-native-community/async-storage/ios`) to your project Libraries.
16+
3. Add `RNCAsyncStorage.xcodeproj` (located at `node_modules/@react-native-async-storage/async-storage/ios`) to your project Libraries.
1717

1818
3. Go to `Build Phases -> Link Binary with Libraries` and add: `libRNCAsyncStorage.a`.
1919

@@ -23,7 +23,7 @@ sidebar_label: Manual linking
2323
2. Add this line to your `Podfile` just below the last pod (if you don't have one, you can create it by running `pod init`):
2424

2525
```diff
26-
+ pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'
26+
+ pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-async-storage/async-storage'
2727
```
2828

2929
3. Run `pod install`
@@ -35,7 +35,7 @@ sidebar_label: Manual linking
3535

3636
2. Right click on the Libraries folder and select `Add files to "yourProjectName"`.
3737

38-
3. Add `RNCAsyncStorage.xcodeproj` (located at `node_modules/@react-native-community/async-storage/macos`) to your project Libraries.
38+
3. Add `RNCAsyncStorage.xcodeproj` (located at `node_modules/@react-native-async-storage/async-storage/macos`) to your project Libraries.
3939

4040
4. Go to `Build Phases -> Link Binary with Libraries` and add: `libRNCAsyncStorage-macOS.a`.
4141

@@ -47,15 +47,15 @@ rootProject.name = 'MyApp'
4747

4848
include ':app'
4949

50-
+ include ':@react-native-community_async-storage'
51-
+ project(':@react-native-community_async-storage').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/async-storage/android')
50+
+ include ':@react-native-async-storage'
51+
+ project(':@react-native-async-storage').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-async-storage/async-storage/android')
5252
```
5353

5454
2. In `android/app/build.gradle` add to dependencies:
5555
```diff
5656
dependencies {
5757
...
58-
+ implementation project(':@react-native-community_async-storage')
58+
+ implementation project(':@react-native-async-storage')
5959
}
6060
```
6161

@@ -86,7 +86,7 @@ protected List<ReactPackage> getPackages() {
8686
1. Open your solution in Visual Studio.
8787

8888
2. Right click Solution icon in Solution Explorer > Add > Existing Project.
89-
Select `node_modules\@react-native-community\async-storage\windows\ReactNativeAsyncStorage\ReactNativeAsyncStorage.vcxproj`
89+
Select `node_modules\@react-native-async-storage\async-storage\windows\ReactNativeAsyncStorage\ReactNativeAsyncStorage.vcxproj`
9090

9191

9292
#### Add a reference to `ReactNativeAsyncStorage` in your main application project.

website/docs/Usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ For data that can be serialized to JSON you can use `JSON.stringify()` when savi
1212
### Importing
1313

1414
```js
15-
import AsyncStorage from '@react-native-community/async-storage';
15+
import AsyncStorage from '@react-native-async-storage/async-storage';
1616
```
1717

1818
### Storing data

website/docs/advanced/Jest-integration.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ You can use one of two ways to provide mocked version of `AsyncStorage`:
1313

1414
### With __mocks__ directory
1515

16-
1. In your project root directory, create `__mocks__/@react-native-community` directory.
16+
1. In your project root directory, create `__mocks__/@react-native-async-storage` directory.
1717
2. Inside that folder, create `async-storage.js` file.
1818
3. Inside that file, export `Async Storage` mock.
1919

2020
```javascript
21-
export default from '@react-native-community/async-storage/jest/async-storage-mock'
21+
export default from '@react-native-async-storage/async-storage/jest/async-storage-mock'
2222
```
2323

2424
### With Jest setup file
@@ -34,9 +34,9 @@ export default from '@react-native-community/async-storage/jest/async-storage-mo
3434
2. Inside your setup file, set up Async Storage mocking:
3535

3636
```javascript
37-
import mockAsyncStorage from '@react-native-community/async-storage/jest/async-storage-mock';
37+
import mockAsyncStorage from '@react-native-async-storage/async-storage/jest/async-storage-mock';
3838

39-
jest.mock('@react-native-community/async-storage', () => mockAsyncStorage);
39+
jest.mock('@react-native-async-storage/async-storage', () => mockAsyncStorage);
4040
```
4141
## Testing with mock
4242

@@ -56,7 +56,7 @@ You can override mock implementation, by replacing its inner functions:
5656

5757
```javascript
5858
// somewhere in your configuration files
59-
import AsyncStorageMock from '@react-native-community/async-storage/jest/async-storage-mock';
59+
import AsyncStorageMock from '@react-native-async-storage/async-storage/jest/async-storage-mock';
6060

6161
AsyncStorageMock.multiGet = jest.fn(([keys], callback) => {
6262
// do something here to retrieve data

website/docs/help/Troubleshooting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sidebar_label: Troubleshooting
1111
3. If you're using CocoaPods:
1212
1. Make sure your `Podfile` has this entry:
1313
```Podfile
14-
pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'
14+
pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-async-storage/async-storage'
1515
```
1616
2. Make sure your `Podfile` does _not_ have an entry for `react-native-async-storage`.
1717
3. `pod install`
@@ -20,15 +20,15 @@ sidebar_label: Troubleshooting
2020
5. Press ⇧⌥⌘K to clean your build folder
2121
6. Build and run your project
2222
23-
> Note that every time `@react-native-community/async-storage` gets updated, you
23+
> Note that every time `@react-native-async-storage/async-storage` gets updated, you
2424
> must also run `pod update RNCAsyncStorage` otherwise you'll still be using the
2525
> previous version.
2626
2727
## [iOS] fatal error: 'React/RCTBridgeModule.h' file not found
2828
2929
```
30-
info In file included from /~/@react-native-community/async-storage/ios/RNCAsyncStorage.m:8:
31-
/~/@react-native-community/async-storage/ios/RNCAsyncStorage.h:8:9: fatal error: 'React/RCTBridgeModule.h' file not found
30+
info In file included from /~/@react-native-async-storage/async-storage/ios/RNCAsyncStorage.m:8:
31+
/~/@react-native-async-storage/async-storage/ios/RNCAsyncStorage.h:8:9: fatal error: 'React/RCTBridgeModule.h' file not found
3232

3333
info #import <React/RCTBridgeModule.h>
3434
^~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)