File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
- # Advanced Usage
1
+ # Integrating Async Storage with embedded React Native apps
2
2
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.
4
5
5
- ### iOS
6
+ ## iOS
6
7
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
8
9
` RNCAsyncStorage ` :
9
10
10
11
``` objc
11
12
RNCAsyncStorage *asyncStorage = [bridge moduleForClass: [ RNCAsyncStorage class]] ;
12
13
asyncStorage.delegate = self;
13
14
```
14
15
15
- The delegate must conform to the protocol `RNCAsyncStorageDelegate`:
16
+ ### The procotol
17
+
18
+ The delegate must conform to the `RNCAsyncStorageDelegate` protocol
19
+
20
+ ---
16
21
17
22
```objc
18
23
- (void)allKeys:(RNCAsyncStorageResultCallback)block;
You can’t perform that action at this time.
0 commit comments