App02Bananas.js 468 B

1234567891011121314151617181920212223242526
  1. import React from "react";
  2. import {
  3. Image,
  4. } from 'react-native';
  5. class Bananas extends React.Component {
  6. render() {
  7. const pic = {
  8. uri: 'https://upload.wikimedia.org/wikipedia/commons/d/de/Bananavarieties.jpg',
  9. };
  10. const img = (
  11. <Image source={pic} style={{
  12. backgroundColor: 'orange',
  13. height: 110,
  14. opacity: 0.9,
  15. width: '100%',
  16. }} />
  17. );
  18. return (
  19. img
  20. );
  21. }
  22. }
  23. export default Bananas;