add a preference

This commit is contained in:
Hailey
2024-08-26 00:21:10 -07:00
parent 256c50c648
commit 13b1cc6379
3 changed files with 32 additions and 0 deletions
@@ -25,6 +25,7 @@ export function BackgroundNotificationPreferencesProvider({
const [preferences, setPreferences] =
React.useState<BackgroundNotificationHandlerPreferences>({
playSoundChat: true,
showAvatarChat: false, // @TODO probably want this to default to true
})
React.useEffect(() => {
@@ -38,4 +38,5 @@ export type ExpoBackgroundNotificationHandlerModule = {
// Don't add them until the native logic also handles the notifications for those preference types.
export type BackgroundNotificationHandlerPreferences = {
playSoundChat: boolean
showAvatarChat: boolean
}