-
Notifications
You must be signed in to change notification settings - Fork 427
/
Copy pathCustomSearchButton.js
42 lines (35 loc) · 994 Bytes
/
CustomSearchButton.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
/**
* Created by guoshuyu on 2017/11/10.
*/
import React, {Component} from 'react';
import {
View, Text, TouchableOpacity
} from 'react-native';
import PropTypes from 'prop-types';
import {Router, Actions, Scene} from 'react-native-router-flux';
import styles from "../../style"
import I18n from '../../style/i18n'
import * as Constant from '../../style/constant'
import Icon from 'react-native-vector-icons/Ionicons'
/**
* 自定义搜索按键
*/
class SearchButton extends Component {
componentDidMount() {
}
componentWillUnmount() {
}
render() {
return (
<TouchableOpacity style={[styles.centered, {
marginHorizontal: Constant.normalMarginEdge,
paddingLeft: 20
}]} onPress={() => {
Actions.SearchPage();
}}>
<Icon name={'md-search'} size={25} color={Constant.miWhite}/>
</TouchableOpacity>
)
}
}
export default SearchButton