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
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
1112RNCAsyncStorage *asyncStorage = [bridge moduleForClass: [ RNCAsyncStorage class]] ;
1213asyncStorage.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;
You can’t perform that action at this time.
0 commit comments