Skip to content

Commit 5411c4c

Browse files
committed
Docs changes by krizzu :)
1 parent a07cf02 commit 5411c4c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

docs/AdvancedUsage.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
# Advanced Usage
1+
# Integrating Async Storage with embedded React Native apps
22

3-
## Integrating with Existing Storage Solutions in RN Brownfield Apps
3+
If you're embedding React Native into native application, you can also integrate
4+
Async Storage module, so that both worlds will use one storage solution.
45

5-
### iOS
6+
## iOS
67

7-
On iOS, AsyncStorage can be controlled by the hosting app via the delegate on
8+
AsyncStorage can be controlled by the hosting app via the delegate on
89
`RNCAsyncStorage`:
910

1011
```objc
1112
RNCAsyncStorage *asyncStorage = [bridge moduleForClass:[RNCAsyncStorage class]];
1213
asyncStorage.delegate = self;
1314
```
1415
15-
The delegate must conform to the protocol `RNCAsyncStorageDelegate`:
16+
### The procotol
17+
18+
The delegate must conform to the `RNCAsyncStorageDelegate` protocol
19+
20+
---
1621
1722
```objc
1823
- (void)allKeys:(RNCAsyncStorageResultCallback)block;

0 commit comments

Comments
 (0)