Skip to content
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
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ $ react-native link @react-native-community/async-storage

See docs for [manual linking guide.](docs/Linking.md)

**Note:** For iOS project using `pods`, run:
```
$ cd ios/ && pod install
```


## Usage

Expand Down Expand Up @@ -66,4 +71,4 @@ See the [CONTRIBUTING](CONTRIBUTING.md) file for how to help out.

## License

MIT
MIT
21 changes: 21 additions & 0 deletions docs/Linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@

## iOS

#### Project linking
1. Open your project `.xcodeproj` on xcode.

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

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

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

#### Using 'Pods'
1. Enter into iOS Folder `cd ios/` (on your project's root folder).

2. Add this line to your `Podfile` just below the last pod: (if you don't one just create a new runnning: `pod init`).

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

3. Run `pod install`


## Android
1. Add project to `android/settings.gradle`:
```diff
Expand Down