← Code LabReact Native0/50 solved · 0%
Native APIs · medium

28. Contextual permission requests

Decide when to prompt for notification permission.

Write `shouldPromptForNotifications(hasAsked, hasPendingSwap)` returning `true` only if the user hasn't been asked yet AND has a pending swap.
Required in your answer: &&