invoice_qrcode.js 945 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import React, {Component} from 'react';
  2. import {View, Text, StyleSheet, TextInput} from 'react-native';
  3. import QRCode from 'react-native-qrcode-svg';
  4. export default class invoice_qrcode extends Component {
  5. constructor(props) {
  6. super(props);
  7. this.state = {
  8. listData: [],
  9. product_number_total: 0,
  10. amount_total: 0.0,
  11. tax_rate_total: 0.0,
  12. text: '2132132132',
  13. };
  14. }
  15. render() {
  16. return (
  17. <View style={styles.container}>
  18. <QRCode
  19. size={300}
  20. value="Just some string value"
  21. logoSize={30}
  22. logoBackgroundColor="transparent"
  23. />
  24. </View>
  25. );
  26. }
  27. }
  28. const styles = StyleSheet.create({
  29. container: {
  30. flex: 1,
  31. backgroundColor: 'white',
  32. alignItems: 'center',
  33. justifyContent: 'center',
  34. },
  35. input: {
  36. height: 40,
  37. borderColor: 'gray',
  38. borderWidth: 1,
  39. margin: 10,
  40. borderRadius: 5,
  41. padding: 5,
  42. },
  43. });