-
Notifications
You must be signed in to change notification settings - Fork 0
/
Search.js
67 lines (52 loc) · 1.95 KB
/
Search.js
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
67
import React from 'react';
import { AppRegistry, ScrollView, Image, StyleSheet,TouchableOpacity,View} from 'react-native';
import { Container, Header, Item, Input, Icon, Button, Text,Right ,Footer,Content,FooterTab,Left,Body} from 'native-base';
import { EvilIcons,MaterialIcons,Ionicons,MaterialCommunityIcons, } from '@expo/vector-icons';
import { Font } from 'expo';
import { SearchBar } from 'react-native-elements'
export default class Search extends React.Component {
componentDidMount() {
Font.loadAsync({
//'open-sans-bold': require('./assets/fonts/OpenSans-Bold.ttf'),
'Roboto_medium': require('./assets/fonts/Roboto-Medium.ttf'),
});
}
static navigationOptions = {
//title: 'Search Twitter',
tabBarIcon: ({ tintColor }) => (
<Icon name="search" /*style={[{ tintColor: tintColor }]}*/ />),
tabBarVisible: false ,
header: <View style={{flex: 1, flexDirection: 'row',marginTop:30}}><Button transparent style={{left: 5}}><Ionicons style={{color:'#1DA1F2'}} name="ios-arrow-round-back-outline" size={40}/></Button><SearchBar
lightTheme
noIcon
inputStyle={{margin: 0,backgroundColor:"white"}}
containerStyle={{left:10 , width: 300}}
//onChangeText={}
placeholder='Search Twitter' /></View>,
}
render() {
const { navigate } = this.props.navigation
return (
<Container style={{}}>
<Content/>
<Footer style={{backgroundColor:"white"}}>
<Text style={{padding: 10,fontSize: 20,color:"#1DA1F2"}} >All</Text>
<Text style={{padding: 10,fontSize: 20,color:'grey'}}>Mentions</Text>
<Right >
<Icon style={styles.bigblue} name="ios-settings-outline" size={20} />
</Right>
</Footer>
</Container>
);
}
}
const styles = StyleSheet.create({
bigblue: {
padding:10,
color: '#1DA1F2',
},
red: {
padding: 20,
fontSize: 20,
},
});