-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.tsx
54 lines (49 loc) · 1.61 KB
/
App.tsx
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
import React, { default as ReactFromImport } from "react";
import { default as ReactReduxFromImport, Provider } from "react-redux";
import { StyleSheet, View } from "react-native";
import { reactGenieStore } from "./store";
// import { CounterView } from "./CounterView";
import {
ModalityProvider,
ReactFromModule,
ReactReduxFromModule,
} from "reactgenie-lib";
// import { CounterExamples } from "./genie/DataTemp";
// import { CounterListView } from "./CounterListView";
import { DataView } from "./src/DataView";
import ENV from "./config";
import { DataTempExamples } from "./genie/DataTemp";
console.log("React is ReactFromModule", ReactFromModule === ReactFromImport);
console.log(
"ReactRedux is ReactReduxFromModule: ",
ReactReduxFromImport === ReactReduxFromModule
);
const App = () => {
return (
<Provider store={reactGenieStore}>
<ModalityProvider
examples={DataTempExamples}
displayTranscript={true}
codexApiKey={ENV.OPENAI_API_KEY!}
codexApiBaseUrl={ENV.OPENAI_API_BASE_URL!}
azureSpeechRegion={ENV.AZURE_SPEECH_REGION!}
azureSpeechKey={ENV.AZURE_SPEECH_KEY!}
extraPrompt={
'// we are using voice recognition. so there may be errors. Try to think about words with similar sounds. For example "address" can actually be "add this".'
}
>
<View style={styles.container}>
<DataView id={"1"} />
</View>
</ModalityProvider>
</Provider>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: "center",
alignItems: "center",
},
});
export default App;