File tree 3 files changed +25
-1
lines changed
3 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 73
73
]
74
74
]
75
75
},
76
- "dependencies" : {}
76
+ "dependencies" : {},
77
+ "codegenConfig" : {
78
+ "name" : " RNQuickSQLite" ,
79
+ "type" : " modules" ,
80
+ "jsSrcsDir" : " src" ,
81
+ "android" : {
82
+ "javaPackageName" : " com.reactnativequicksqlite"
83
+ }
84
+ }
77
85
}
Original file line number Diff line number Diff line change
1
+ import type { TurboModule } from 'react-native' ;
2
+ import { TurboModuleRegistry } from 'react-native' ;
3
+
4
+ export interface Spec extends TurboModule { }
5
+
6
+ export default TurboModuleRegistry . getEnforcing < Spec > ( 'RNQuickSQLite' ) ;
Original file line number Diff line number Diff line change @@ -43,6 +43,16 @@ if (global.__QuickSQLiteProxy == null) {
43
43
const proxy = global . __QuickSQLiteProxy ;
44
44
export const QuickSQLite = proxy as ISQLite ;
45
45
46
+ export const {
47
+ IOS_DOCUMENT_PATH ,
48
+ IOS_LIBRARY_PATH ,
49
+ ANDROID_DATABASE_PATH ,
50
+ ANDROID_FILES_PATH ,
51
+ ANDROID_EXTERNAL_FILES_PATH
52
+ } = ! ! NativeModules . RNQuickSQLite . getConstants
53
+ ? NativeModules . RNQuickSQLite . getConstants ( )
54
+ : NativeModules . RNQuickSQLite ;
55
+
46
56
export const { open } = setupOpen ( QuickSQLite ) ;
47
57
48
58
export const typeORMDriver = setupTypeORMDriver ( open ) ;
You can’t perform that action at this time.
0 commit comments