-
-
Notifications
You must be signed in to change notification settings - Fork 51
Expand file tree
/
Copy pathindex.ts
More file actions
66 lines (61 loc) · 1.44 KB
/
index.ts
File metadata and controls
66 lines (61 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import { StackNavigationProp } from '@react-navigation/stack';
import Piano from './Piano';
import TextToSpeech from './TextToSpeech';
import Metronome from './Metronome';
import Oscillator from './Oscillator';
import DrumMachine from './DrumMachine';
import AudioFile from './AudioFile';
type NavigationParamList = {
Oscillator: undefined;
Metronome: undefined;
DrumMachine: undefined;
Piano: undefined;
TextToSpeech: undefined;
AudioFile: undefined;
};
export type ExampleKey = keyof NavigationParamList;
export type MainStackProps = StackNavigationProp<NavigationParamList>;
export interface Example {
key: ExampleKey;
title: string;
subtitle: string;
screen: React.FC;
}
export const Examples: Example[] = [
{
key: 'DrumMachine',
title: 'Drum Machine',
subtitle: 'Create drum patterns',
screen: DrumMachine,
},
{
key: 'Piano',
title: 'Simple Piano',
subtitle: 'Play some notes',
screen: Piano,
},
{
key: 'TextToSpeech',
title: 'Text to Speech',
subtitle: 'type some text and hear it spoken',
screen: TextToSpeech,
},
{
key: 'Metronome',
title: 'Metronome',
subtitle: 'Keep time with the beat',
screen: Metronome,
},
{
key: 'Oscillator',
title: 'Oscillator',
subtitle: 'Generate sound waves',
screen: Oscillator,
},
{
key: 'AudioFile',
title: 'Audio File',
subtitle: 'Play an audio file',
screen: AudioFile,
},
] as const;