StelySS

Scooty - MapPageBeforeRent

Aug 19th, 2019
91
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { Component } from "react";
  2. import { StyleSheet, View, Image } from "react-native";
  3. import MaterialButtonDark from "../symbols/MaterialButtonDark";
  4.  
  5. export default class MapPageBeforeRent extends Component {
  6. render() {
  7. return (
  8. <View style={styles.root}>
  9. <Image
  10. source={require("../assets/images/map-1400x800_(1).jpg")}
  11. resizeMode={"contain"}
  12. style={styles.MapSample}
  13. />
  14. <MaterialButtonDark style={styles.RentButton} />
  15. </View>
  16. );
  17. }
  18. }
  19.  
  20. const styles = StyleSheet.create({
  21. root: {
  22. flex: 1,
  23. backgroundColor: "rgba(111,157,205,1)"
  24. },
  25. MapSample: {
  26. top: -10,
  27. left: -70,
  28. width: 500,
  29. height: 650,
  30. position: "absolute"
  31. },
  32. RentButton: {
  33. top: 500,
  34. left: "29.17%",
  35. width: 150,
  36. height: 66,
  37. position: "absolute"
  38. }
  39. });
RAW Paste Data