NoDataView.js 1001 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * Sample React Native App
  3. * https://github.com/facebook/react-native
  4. *
  5. * @format
  6. * @flow
  7. */
  8. import React, { Component } from 'react';
  9. import {
  10. Platform,
  11. StyleSheet,
  12. Text,
  13. View,
  14. Image,
  15. TouchableOpacity,
  16. ImageBackground,
  17. TextInput,
  18. Button,
  19. StatusBar,
  20. Modal,
  21. TouchableHighlight,
  22. DeviceEventEmitter
  23. } from 'react-native';
  24. import ImagePicker from 'react-native-image-picker';
  25. export default class NoDataView extends Component {
  26. render() {
  27. return (
  28. <View style={{ flex: 1 }}>
  29. <View
  30. style={{
  31. height: '100%',
  32. width: '100%',
  33. alignItems: 'center',
  34. backgroundColor: 'rgba(246, 247, 248, 1)',
  35. justifyContent: 'center'
  36. }}
  37. >
  38. <Image
  39. source={require('../images/common/nodata.png')}
  40. style={{ alignItems: 'center', justifyContent: 'center' }}
  41. />
  42. <Text style={{ textAlign: 'center', textAlignVertical: 'center', marginTop: 18, fontSize: 16 }}>
  43. {this.props.text}
  44. </Text>
  45. </View>
  46. </View>
  47. );
  48. }
  49. }