add a preference
This commit is contained in:
+1
@@ -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(() => {
|
||||
|
||||
+1
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user