No Description

FindSearchTitleView.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /**
  2. * Created by zack on 2018/4/29.
  3. */
  4. import {
  5. View,
  6. Text,
  7. StyleSheet,
  8. Image,
  9. TouchableOpacity,
  10. TextInput
  11. } from 'react-native'
  12. import React, {Component} from 'react'
  13. import {NavigationBarHeight, TabBarHeight, ScreenDimensions} from '../../../../utils/DimensionsTools'
  14. export default class FindSearchTitleView extends Component {
  15. render() {
  16. return(
  17. <View style={styles.View}>
  18. <Image style={styles.SearchIconImageView} source={require('../../../../resources/images/TabBar/Community/Answer/search.png')}/>
  19. <TextInput placeholderTextColor={'#9c9c9c'} placeholder={'搜一搜你想回答的问题'} style={styles.TextInput} />
  20. </View>
  21. )
  22. }
  23. }
  24. const styles = StyleSheet.create({
  25. View: {
  26. width: ScreenDimensions.width - 65 - 60,
  27. height: 30,
  28. alignItems: 'center',
  29. opacity: 0.75,
  30. borderRadius: 4,
  31. backgroundColor: "rgba(230, 233, 231, 0.75)",
  32. flexDirection: 'row',
  33. },
  34. SearchIconImageView: {
  35. marginLeft: 14,
  36. },
  37. TextInput: {
  38. marginLeft: 12,
  39. height: 40,
  40. width: ScreenDimensions.width - 65 - 60 - 20 - 14 - 12,
  41. backgroundColor: "rgba(230, 233, 231, 0.75)",
  42. fontSize: 15,
  43. color: '#000000'
  44. }
  45. })