Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

usePrivateRoomMenu

usePrivateRoomMenu(): PrivateRoomMenu

The app’s verbs on the private room this page’s room runs, which a game’s own menu calls in its own look, as useWorldDirectory gives a world’s. Roblox’s SocialService:PromptGameInvite opens its own invite prompt the same way.

PrivateRoomMenu

const { inviteFriends } = usePrivateRoomMenu();
return <Button onPress={() => void inviteFriends()}>Invite friends</Button>;