Skip to Content
HomeLink Hub
Tenant Experience

Property details

The listing screen a tenant opens from any card, with photo, reviews, sharing, wishlist, map and the buttons that start an inspection or a payment.

Where it lives

RouteFileWho sees it
/property/[id]app/property/[id].tsxAny signed-in user who opens a listing card (home, search, category, recommended, wishlist, purchases)
(stack wrapper)app/property/_layout.tsxWraps every /property/* screen in a headerless stack

Components used by the screen: components/app/property-title.tsx, components/app/property-listedby.tsx, components/app/property-location-map.tsx, components/app/property-share-sheet.tsx. Share helpers are in lib/share.ts. All data comes from RTK Query endpoints in services/property/property-thunk.ts (cache propertyApi) and services/wishlist/wishlist-thunk.ts (cache wishlistApi). Live updates use hooks/use-booking-updates.ts.

app/property/_layout.tsx only sets animations: the detail, payment method, bank transfer, escrow and receipt screens slide in from the right; the inspection, payment, contract, short-let booking and webview screens slide up from the bottom.

Before you start

  • Signed in. The property and its reviews are public on the API, but the view counter, wishlist, review form, inspection list and payment request status all need the access token.
  • No device permission is needed. The map is a static preview and does not use the device location.
  • The app does not check KYC status anywhere on this screen.

Flow

Opening a listing

  1. The screen reads the id route param and fires these requests in parallel:
    • GET /api/v1/property/:id for the listing itself.
    • GET /api/v1/property/:id/reviews?limit=10&page=1 for the first ten reviews.
    • GET /api/v1/booking/property/:propertyId/payment-request for the tenant's latest reservation or stay request on this listing.
    • GET /api/v1/inspection/my for the tenant's inspections, used to decide the left button label.
    • GET /api/v1/inspection/availability/:propertyId?date=... with the current time. The result is fetched but not shown anywhere on this screen.
    • POST /api/v1/property/:id/view to record a view. A failure is ignored.
  2. It also opens the shared socket and listens for booking:updated. When an event arrives for this property the cached payment request status is invalidated and refetched, so the buttons change without leaving the screen.
  3. Until the listing arrives the screen shows a spinner with "Loading property…".

All results stay in the propertyApi RTK Query cache. Nothing is written to AsyncStorage.

What the screen shows, top to bottom

BlockContent and rules
Hero photoThe first image of the listing only. There is no swipeable gallery. If the listing has no image a stock photo is shown.
Top barBack chevron, share button, heart button.
Rating pillShown only when the average rating is above 0: the number to one decimal and a word. 4.5 and up is "Excellent", 4 and up "Very Good", 3 and up "Good", below that "Fair".
Title blockTitle, a green "Verified" badge when the listing is verified, or a "Sold" or "Rented" badge when it is off the market. Location as "community, state". Price, then spec chips "N beds", "N baths", "N sqft" (beds and baths are hidden when the listing has none).
Pricepricing.rentPrice if set, otherwise pricing.salePrice, otherwise "N/A". Short-lets get the suffix /night, everything else /year. A rental collected for more than one year adds the note "Agent collects N years up front".
Payment status bannerSee "Requesting payment" below.
Property OverviewThe description, or a generic placeholder sentence when it is empty.
Key AmenitiesOne chip per amenity. When the listing has none, four placeholder chips are shown: "24/7 Power", "Security", "WiFi", "Parking".
Listed ByAvatar, name, role ("Property Owner" when the lister's role is landlord, otherwise "Property Manager"), a blue tick when the lister is KYC verified, a message button, and the phone number as plain text when there is one.
LocationHeading "Location", an address line and a non-interactive Google map with one pin.
ReviewsSummary, up to three review cards, and the review form.
Action buttonsTwo buttons at the very bottom of the scroll, described below.

Sale prices also show /year

The screen passes no period for a sale listing, but property-title.tsx defaults a missing period to "year", so a sale price is rendered with /year after it. A short-let whose pricing.rentPrice is empty shows "N/A/night", because the nightly rate is not read on this screen.

Map and contact are placeholders

The map always shows the text "Lagos, Nigeria" and the same default pin, because the screen never passes the listing's own coordinates. The message button in "Listed By" has an empty handler and does nothing, and the phone number cannot be tapped to call.

Saving to the wishlist

  1. Tap the heart. It fills red straight away (optimistic update).
  2. The app sends POST /api/v1/wishlist/add or POST /api/v1/wishlist/remove with the body below. Success invalidates the Wishlist tag so the wishlist list refetches.
{ "propertyId": "..." }
  1. If the request fails the heart reverts and an alert shows "Error" with "Could not update wishlist".

The heart is dimmed and disabled on a sold or rented listing.

Heart may start empty for a saved listing

The initial heart state is read from an isFavorite field on the property response. The backend source does not send that field, so the heart starts empty even when the listing is already saved. Tapping it then calls add, the API answers "Property already in wishlist", and the user sees "Could not update wishlist".

Sharing

  1. Tap the share button. A bottom sheet titled "Share property" opens with a preview (first photo, title, location, price), the public link and a "Copy" button.
  2. The link points at the tenant website path /app/property/:id, the same link the website shares. The message sent with it is "Check out this property on HomeLink Hub: " followed by the title and location.
  3. "Copy" writes the link to the clipboard and reads "Copied" for two seconds. On a build without the clipboard module it opens the system share sheet instead.
  4. Under "Share via" there are six targets: "WhatsApp", "Telegram", "X", "Facebook", "Email" and "More". The first five open that service's web share link, which the phone hands to the installed app or the browser. "More" opens the system share sheet.
  5. If a target cannot be opened the system share sheet is offered instead. If that also fails an alert shows "Couldn't share" with "Please try again in a moment."

Sharing makes no API call.

Reading and writing reviews

  1. The "Reviews" header shows the average, its word label and "N reviews" when the average is above 0.
  2. The first three reviews are listed. With more than three loaded, a button reads "Read all N reviews" and toggles to "Show fewer reviews". Only the first ten reviews are ever loaded, so "all" can show fewer than N.
  3. With no reviews the card reads "No reviews yet. Be the first to share your experience!".
  4. "Write a Review" appears unless one of the loaded reviews belongs to the signed-in user.
    • Star picker: 1 to 5, default 5.
    • Text box, placeholder "Share your experience (min. 20 characters)…". Leading and trailing spaces are trimmed. Empty text does nothing. Fewer than 20 characters shows the alert "Review too short" with "Please enter at least 20 characters before submitting."
  5. "Submit Review" (reads "Submitting…" while sending) fires POST /api/v1/property/:id/reviews:
{ "title": "Review for <listing title>", "rating": 5, "comment": "...", "text": "..." }
  1. Success clears the form, shows "Review submitted" with "Your review was submitted successfully." and refetches the review list. Failure shows "Review failed" with the server message, or "Unable to submit your review right now. Please try again." The API rejects a second review with "You have already reviewed this property".

Inspecting (left button)

  • Label "Inspect": opens /property/inspection?propertyId=.... See Booking an inspection.
  • Label "Pay Now": shown when the tenant has an inspection on this listing whose approval status is approved and whose payment status is unpaid. It pushes /property/payment with params propertyId, type set to inspection, and inspectionId.

Pay Now opens the wrong payment

/property/payment only reads propertyId. It ignores type and inspectionId, so this "Pay Now" opens the rent or purchase payment for the whole property, not the inspection fee. The working way to pay an inspection fee is the "Pay Now" button on the My Inspections tab.

Requesting payment (right button)

The right button reads "Request Payment" until the lister accepts, then "Make Payment".

  1. Short-let listing. "Request Payment" opens /property/short-let-booking with params id and title. See Short-let booking.
  2. Rent or sale listing. "Request Payment" fires POST /api/v1/booking/create:
{
  "propertyId": "...",
  "type": "reservation",
  "requestedDate": "YYYY-MM-DD (today plus 30 days)",
  "notes": "Requesting payment for reservation."
}
  1. Success refetches the status and shows "Request sent" with "Payment request sent! Awaiting agent/landlord acceptance." Failure shows "Request failed" with the server message or "Unable to send payment request." The API allows one active request per tenant per listing and answers a repeat with "You already have an active payment request for this property".
  2. Once the status is confirmed, "Make Payment" pushes /property/payment with propertyId and type set to property. See Paying for a property.

The banner under the title follows the same status:

StatusBannerButton on the banner
requested"Awaiting Response" with "Your payment request is pending landlord approval."none
confirmed"Payment Confirmed" with "Your reservation has been accepted.""Pay Now", which only shows the alert "Pay Now" with "Escrow payment flow coming soon."
cancelled"Request Declined" with "Your previous request was cancelled.""Retry", which repeats step 1 or 2

Status field mismatch

The screen reads the status from data.paymentStatus, but the backend returns the booking with the field status and has no paymentStatus on a booking. As the code stands the banner never appears and the right button stays on "Request Payment", so "Make Payment" cannot be reached from this screen. Confirm against the live API before relying on this flow.

States and edge cases

  • Loading. A centred spinner and "Loading property…". There is no skeleton.
  • Listing fails to load or is offline. There is no error state. The screen stays on "Loading property…" until the user goes back.
  • Sold or rented. For rent and sale listings with status sold or rented, both action buttons are replaced by a grey bar reading "This property has been sold" or "This property has been rented", and the heart is disabled. Short-lets never enter this state.
  • Socket cannot connect. The screen still works; the payment status just does not update on its own.
  • Session expired. A 401 triggers one silent token refresh and a retry. If that fails the app returns to sign in.

What happens next

  • A payment request notifies the listing agent, or the landlord when there is no agent, with "New Payment Request" in the app and by email. When they accept, the tenant is notified with "Payment Request Accepted" and both sides receive the booking:updated socket event.
  • A new review sends the listing owner a notification that includes the reviewer's name and star rating.
  • Each open of the screen counts as a view for the signed-in user. The backend describes the counter as one view per user per property.

On this page