LeaveReview

LeaveReview

new LeaveReview(props)

A modal screen for users to leave a review for a certain dish

Parameters:
Name Type Description
props LeaveReviewProps
Source:

Type Definitions

LeaveReviewProps

Properties:
Name Type Description
visible boolean

boolean value indicating whether this modal is currently visible or not

hideModal function

function passed in from parent to close this modal

refresh function

function passed in from parent to force refresh of parent on close

dishid int

dishid of dish being reviewed

rating int

rating from 1 to 5 that user left for dish

navigation Object

Stack Navigation object

Source: