File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 191
191
}
192
192
]
193
193
]
194
+ },
195
+ "codegenConfig" : {
196
+ "name" : " rnasyncstorage" ,
197
+ "type" : " modules" ,
198
+ "jsSrcsDir" : " ./src" ,
199
+ "android" : {
200
+ "javaPackageName" : " com.reactnativecommunity.asyncstorage"
201
+ }
194
202
}
195
203
}
Original file line number Diff line number Diff line change
1
+ import { TurboModuleRegistry , TurboModule } from 'react-native' ;
2
+
3
+ export interface Spec extends TurboModule {
4
+ multiGet : (
5
+ keys : string [ ] ,
6
+ callback : ( error ?: Object [ ] , result ?: [ string , string ] [ ] ) => void
7
+ ) => void ;
8
+ multiSet : (
9
+ kvPairs : [ string , string ] [ ] ,
10
+ callback : ( error ?: Object [ ] ) => void
11
+ ) => void ;
12
+ multiRemove : (
13
+ keys : readonly string [ ] ,
14
+ callback : ( error ?: Object [ ] ) => void
15
+ ) => void ;
16
+ multiMerge : (
17
+ kvPairs : [ string , string ] [ ] ,
18
+ callback : ( error ?: Object [ ] ) => void
19
+ ) => void ;
20
+ getAllKeys : (
21
+ callback : ( error ?: Object [ ] , result ?: [ string , string ] [ ] ) => void
22
+ ) => void ;
23
+ clear : ( callback : ( error ?: Object [ ] ) => void ) => void ;
24
+ }
25
+
26
+ export default TurboModuleRegistry . get < Spec > ( 'RNCAsyncStorage' ) ;
You can’t perform that action at this time.
0 commit comments