File tree Expand file tree Collapse file tree 2 files changed +20
-20
lines changed
Expand file tree Collapse file tree 2 files changed +20
-20
lines changed Original file line number Diff line number Diff line change 1- pre-commit :
2- parallel : true
3- commands :
4- lint :
5- glob : " *.{js,ts,jsx,tsx}"
6- run : npx eslint {staged_files}
7- types :
8- glob : " *.{js,ts, jsx, tsx}"
9- run : npx tsc
10- commit-msg :
11- parallel : true
12- commands :
13- commitlint :
14- run : npx commitlint --edit
1+ # pre-commit:
2+ # parallel: true
3+ # commands:
4+ # lint:
5+ # glob: "*.{js,ts,jsx,tsx}"
6+ # run: npx eslint {staged_files}
7+ # types:
8+ # glob: "*.{js,ts, jsx, tsx}"
9+ # run: npx tsc
10+ # commit-msg:
11+ # parallel: true
12+ # commands:
13+ # commitlint:
14+ # run: npx commitlint --edit
Original file line number Diff line number Diff line change @@ -2,17 +2,17 @@ import { NativeModules } from 'react-native'
22
33
44declare global {
5- var saveImageToGallery : ( buffer : ArrayBufferLike ) => void
5+ var saveImageToGallery : ( buffer : ArrayBufferLike ) => void ;
66}
77
88
9- let __saveImageToGallery = global . saveImageToGallery
9+ let __saveImageToGallery = global . saveImageToGallery ;
1010
1111if ( ! __saveImageToGallery ) {
1212 if ( NativeModules . ImgBufferSave ?. install ) {
13- NativeModules . ImgBufferSave . install ( ) // Вызываем native install метод
14- __saveImageToGallery = global . saveImageToGallery // Сохраняем глобальную ссылку на объект SqlDb
15- console . log ( '✅ react-native-img-buffer-save initialized successfully' )
13+ NativeModules . ImgBufferSave . install ( ) ; // Вызываем native install метод
14+ __saveImageToGallery = global . saveImageToGallery ; // Сохраняем глобальную ссылку на объект SqlDb
15+ console . log ( '✅ react-native-img-buffer-save initialized successfully' ) ;
1616 }
1717}
1818export const saveImageToGallery = ( buff :ArrayBuffer | Uint8Array ) => {
@@ -23,5 +23,5 @@ export const saveImageToGallery = (buff:ArrayBuffer | Uint8Array)=> {
2323 } else {
2424 throw new Error ( 'Invalid argument type; must be ArrayBuffer or Uint8Array' ) ;
2525 }
26- }
26+ } ;
2727
You can’t perform that action at this time.
0 commit comments