@planningcenter/chat-react-native 3.43.0 → 3.43.1-qa-858.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/conversations/conversations.d.ts.map +1 -1
- package/build/components/conversations/conversations.js +25 -16
- package/build/components/conversations/conversations.js.map +1 -1
- package/build/components/display/platform_modal_header_buttons.d.ts +42 -14
- package/build/components/display/platform_modal_header_buttons.d.ts.map +1 -1
- package/build/components/display/platform_modal_header_buttons.js +107 -27
- package/build/components/display/platform_modal_header_buttons.js.map +1 -1
- package/build/components/primitive/form_sheet.js +2 -2
- package/build/components/primitive/form_sheet.js.map +1 -1
- package/build/navigation/index.d.ts +76 -149
- package/build/navigation/index.d.ts.map +1 -1
- package/build/navigation/index.js +67 -76
- package/build/navigation/index.js.map +1 -1
- package/build/screens/bug_report_screen.d.ts.map +1 -1
- package/build/screens/bug_report_screen.js +10 -13
- package/build/screens/bug_report_screen.js.map +1 -1
- package/build/screens/conversation_details_screen.d.ts.map +1 -1
- package/build/screens/conversation_details_screen.js +11 -12
- package/build/screens/conversation_details_screen.js.map +1 -1
- package/build/screens/conversation_filters_screen.d.ts.map +1 -1
- package/build/screens/conversation_filters_screen.js +15 -2
- package/build/screens/conversation_filters_screen.js.map +1 -1
- package/build/screens/conversation_screen.d.ts.map +1 -1
- package/build/screens/conversation_screen.js +6 -2
- package/build/screens/conversation_screen.js.map +1 -1
- package/build/screens/message_report_screen.d.ts.map +1 -1
- package/build/screens/message_report_screen.js +14 -18
- package/build/screens/message_report_screen.js.map +1 -1
- package/build/screens/notification_settings_screen.d.ts.map +1 -1
- package/build/screens/notification_settings_screen.js +27 -33
- package/build/screens/notification_settings_screen.js.map +1 -1
- package/package.json +4 -3
- package/src/components/conversations/conversations.tsx +17 -1
- package/src/components/display/platform_modal_header_buttons.tsx +196 -45
- package/src/components/primitive/form_sheet.tsx +2 -2
- package/src/navigation/index.tsx +147 -151
- package/src/screens/bug_report_screen.tsx +16 -15
- package/src/screens/conversation_details_screen.tsx +11 -17
- package/src/screens/conversation_filters_screen.tsx +22 -2
- package/src/screens/conversation_screen.tsx +7 -2
- package/src/screens/message_report_screen.tsx +20 -21
- package/src/screens/notification_settings_screen.tsx +16 -21
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { PlatformPressable } from '@react-navigation/elements'
|
|
2
2
|
import { StaticScreenProps, useNavigation } from '@react-navigation/native'
|
|
3
|
-
import
|
|
3
|
+
import { type ReactNode } from 'react'
|
|
4
4
|
import { FlatList, Platform, StyleSheet, View, type ViewProps, type ViewStyle } from 'react-native'
|
|
5
5
|
import { useSafeAreaInsets } from 'react-native-safe-area-context'
|
|
6
6
|
import { Badge, Heading, Icon, Text } from '../components'
|
|
7
|
-
import { HeaderTextButton } from '../components/display/platform_modal_header_buttons'
|
|
8
7
|
import { useTheme } from '../hooks'
|
|
9
8
|
import { isDefined } from '../types'
|
|
10
9
|
import { chatTypeLabel } from '../utils'
|
|
@@ -50,25 +49,7 @@ export function NotificationSettingsScreen({}: NotificationSettingsScreenProps)
|
|
|
50
49
|
const styles = useStyles()
|
|
51
50
|
const { data: chatTypes } = useChatTypes()
|
|
52
51
|
const { data: groups } = useGroups()
|
|
53
|
-
|
|
54
|
-
// Header configuration
|
|
55
|
-
const HeaderRight = useCallback(() => {
|
|
56
|
-
return (
|
|
57
|
-
<HeaderTextButton
|
|
58
|
-
onPress={() => {
|
|
59
|
-
// Save settings logic would go here
|
|
60
|
-
navigation.goBack()
|
|
61
|
-
}}
|
|
62
|
-
title="Done"
|
|
63
|
-
/>
|
|
64
|
-
)
|
|
65
|
-
}, [navigation])
|
|
66
|
-
|
|
67
|
-
useEffect(() => {
|
|
68
|
-
navigation.setOptions({
|
|
69
|
-
headerRight: HeaderRight,
|
|
70
|
-
})
|
|
71
|
-
}, [HeaderRight, navigation])
|
|
52
|
+
const debugInsets = useSafeAreaInsets()
|
|
72
53
|
|
|
73
54
|
// Build section data
|
|
74
55
|
const listData = [
|
|
@@ -142,6 +123,20 @@ export function NotificationSettingsScreen({}: NotificationSettingsScreenProps)
|
|
|
142
123
|
|
|
143
124
|
return (
|
|
144
125
|
<View style={styles.listContainer}>
|
|
126
|
+
<View
|
|
127
|
+
style={{
|
|
128
|
+
position: 'absolute',
|
|
129
|
+
top: 0,
|
|
130
|
+
right: 0,
|
|
131
|
+
zIndex: 999,
|
|
132
|
+
backgroundColor: 'magenta',
|
|
133
|
+
padding: 8,
|
|
134
|
+
}}
|
|
135
|
+
>
|
|
136
|
+
<Text style={{ color: 'white' }}>
|
|
137
|
+
bottom={debugInsets.bottom} top={debugInsets.top}
|
|
138
|
+
</Text>
|
|
139
|
+
</View>
|
|
145
140
|
<FlatList
|
|
146
141
|
data={listData as SectionListData}
|
|
147
142
|
contentContainerStyle={styles.contentContainer}
|