forked from tewa97/ReceptionRobot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
39 lines (32 loc) · 1005 Bytes
/
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
import React, { useEffect } from 'react';
import { Pressable, StyleSheet, TextInput, View } from 'react-native';
import { StatusBar } from 'expo-status-bar';
import { Feather} from '@expo/vector-icons'
import { Maps } from './src/components/Maps';
import { SearchBar } from './src/components/SearchBar';
import { styles } from "./styles"
import Voice from '@react-native-voice/voice';
export default function App() {
function onSpeachResults(){
}
useEffect(()=>{
Voice.onSpeechResults = onSpeachResults()
}, [])
return (
<View style={styles.container}>
<StatusBar/>
<View style={styles.header}>
<TextInput style={styles.input} placeholder='pesquisar...'/>
<Pressable style={styles.button}>
<Feather name="mic" color="#FFF" size={24}/>
</Pressable>
</View>
<View>
<Maps />
<View style={{ alignItems: 'center', height: '100%', width: '100%' }}>
<SearchBar/>
</View>
</View>
</View>
);
}