Advertisement
isuru93

Untitled

Mar 30th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. import React, { Component } from 'react'
  2. import {
  3. View,
  4. Text,
  5. AppRegistry,
  6. Image,
  7. StyleSheet,
  8. TextInput,
  9. TouchableOpacity,
  10. Dimensions,
  11. KeyboardAvoidingView,
  12. StatusBar,
  13. ScrollView,
  14. Slider
  15. }
  16. from 'react-native';
  17. import {TextInputMask} from 'react-native-masked-text';
  18. export default class TabOne extends Component {
  19.  
  20. constructor(props) {
  21. super(props);
  22.  
  23. }
  24.  
  25.  
  26. render(){
  27. return(
  28. <View style={{padding:10}}>
  29. <View style={{flexDirection:'row', paddingTop:10}}>
  30. <Text style={{flexDirection:'row', flex:2, fontSize:15, color:'#666', fontFamily: 'Lato-Regular'}}>
  31. <Text>{this.props.PropertyName}</Text>
  32. </Text>
  33.  
  34.  
  35. <View style={{flexDirection:'row', flex:2, justifyContent:'flex-end'}}>
  36. <Text style={{fontSize:15, color:'#666', fontFamily: 'Lato-Light'}}>{this.props.PropertyType}</Text>
  37. </View>
  38. </View>
  39.  
  40. <View style={{flexDirection:'row', paddingTop:10}}>
  41. <Text style={{flexDirection:'row', flex:2, fontSize:15, color:'#666', fontFamily: 'Lato-Regular'}}>
  42. <Text style={{fontFamily:'Lato-Light', fontSize:15}}>{this.props.Address}</Text>
  43. </Text>
  44.  
  45.  
  46. <View style={{flexDirection:'row', flex:2, justifyContent:'flex-end'}}>
  47. <Text style={{fontSize:15, color:'#666', fontFamily: 'Lato-Light'}}>{this.props.Propertycity}</Text>
  48. </View>
  49. </View>
  50.  
  51.  
  52. <View style={{flexDirection:'row', paddingTop:10}}>
  53.  
  54. <TextInputMask
  55. style={{flexDirection:'row', flex:2, color:'#666', fontSize:15, color:'#666', fontFamily: 'Lato-Light', padding:0}}
  56. value={this.props.price}
  57. editable ={false}
  58. type={'money'}
  59. options={{
  60. precision: 0,
  61. unit : 'LKR ',
  62. delimiter: ','
  63. }}
  64. />
  65. <View style={{flexDirection:'row', flex:2, justifyContent:'flex-end', fontSize:15, color:'#666', fontFamily: 'Lato-Light'}}>
  66. <Text style={{color:'#666', fontSize:15, color:'#666', fontFamily: 'Lato-Light'}}></Text>
  67. </View>
  68. </View>
  69. <Text style={{marginTop:10, color:'#666',fontSize:15, color:'#666', fontFamily: 'Lato-Light'}}>
  70. {this.props.Propertydescription}
  71. </Text>
  72. <View style={{flexDirection:'row',justifyContent:'flex-end'}}>
  73. </View>
  74. </View>
  75. );
  76.  
  77.  
  78. }
  79.  
  80.  
  81.  
  82.  
  83.  
  84. }
  85.  
  86.  
  87. const styles = StyleSheet.create({
  88.  
  89. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement