File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -9,12 +9,11 @@ import {
99 Text ,
1010 View ,
1111} from 'react-native' ;
12- import {
12+ import AudioAnalyzer , {
1313 scale ,
1414 sample ,
1515 robustScale ,
1616 trimmedScale ,
17- analyzeAudio ,
1817} from 'react-native-audio-analyzer' ;
1918import type { AmplitudeData } from 'react-native-audio-analyzer' ;
2019import ReactNativeBlobUtil from 'react-native-blob-util' ;
@@ -34,7 +33,7 @@ export default function App() {
3433 { }
3534 ) ;
3635 const path = response . path ( ) ;
37- const data = analyzeAudio ( path , 2 ) ;
36+ const data = AudioAnalyzer . analyze ( path , 2 ) ;
3837 setResult ( data ) ;
3938 } catch ( error ) {
4039 Alert . alert ( 'Error' , String ( error ) ) ;
Original file line number Diff line number Diff line change @@ -10,13 +10,7 @@ TestAppModule.install();
1010// @ts -ignore
1111const bridge = global . __EXZOS_ANALYZER__ as unknown as AudioAnalyzerBridge ;
1212
13- /**
14- * @deprecated Please, use default export instead.
15- */
16- const analyzeAudio = bridge . analyze ;
17-
1813export type { AmplitudeData } ;
1914
20- export { analyzeAudio } ;
2115export * from './helpers' ;
2216export default bridge ;
You can’t perform that action at this time.
0 commit comments