Last active
March 10, 2018 20:28
-
-
Save ShMcK/ad668f95e9dd4e7e4034a527469ae6a9 to your computer and use it in GitHub Desktop.
expo-pn-listener
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Notifications } from 'expo' | |
Notifications.addListener(async ({ data, origin }) => { | |
if (origin === 'received') { | |
// trigger modal | |
} else if (origin === 'selected') { | |
// route to page with linked data | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment