Skip to content

Commit 7623ee3

Browse files
committed
chore: update example
1 parent 362f728 commit 7623ee3

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

example/src/App.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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';
1918
import type { AmplitudeData } from 'react-native-audio-analyzer';
2019
import 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));

src/index.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ TestAppModule.install();
1010
// @ts-ignore
1111
const bridge = global.__EXZOS_ANALYZER__ as unknown as AudioAnalyzerBridge;
1212

13-
/**
14-
* @deprecated Please, use default export instead.
15-
*/
16-
const analyzeAudio = bridge.analyze;
17-
1813
export type { AmplitudeData };
1914

20-
export { analyzeAudio };
2115
export * from './helpers';
2216
export default bridge;

0 commit comments

Comments
 (0)