File tree 16 files changed +52
-11
lines changed
16 files changed +52
-11
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ export default function Login() {
39
39
< ModalView title = "Login" >
40
40
< ScrollView
41
41
keyboardShouldPersistTaps = "handled"
42
+ keyboardDismissMode = "interactive"
42
43
contentContainerStyle = { { paddingBottom : 400 } }
43
44
showsHorizontalScrollIndicator = { false }
44
45
>
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export default function Register() {
41
41
< ModalView title = "Register" >
42
42
< ScrollView
43
43
keyboardShouldPersistTaps = "handled"
44
+ keyboardDismissMode = "interactive"
44
45
contentContainerStyle = { { paddingBottom : 400 } }
45
46
showsHorizontalScrollIndicator = { false }
46
47
>
Original file line number Diff line number Diff line change @@ -28,7 +28,12 @@ export default function DeleteTask() {
28
28
29
29
return (
30
30
< ModalView title = "Delete task" >
31
- < ScrollView className = "flex-1 space-y-2" >
31
+ < ScrollView
32
+ className = "flex-1 space-y-2"
33
+ showsVerticalScrollIndicator = { false }
34
+ keyboardShouldPersistTaps = "handled"
35
+ keyboardDismissMode = "interactive"
36
+ >
32
37
< Text > Do you want to only delete this task or all future tasks as well?</ Text >
33
38
< Button
34
39
isLoading = { deleteTask . isLoading }
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ export default function Backlog() {
24
24
< ModalView title = "Backlog" >
25
25
< ScrollView
26
26
keyboardShouldPersistTaps = "handled"
27
+ keyboardDismissMode = "interactive"
27
28
contentContainerStyle = { { flexGrow : 1 , paddingBottom : 200 } }
28
29
showsVerticalScrollIndicator = { false }
29
30
refreshControl = { < RefreshControl refreshing = { false } onRefresh = { refetch } /> }
Original file line number Diff line number Diff line change @@ -43,9 +43,10 @@ export default function ElementDetail() {
43
43
) : (
44
44
< ScrollView
45
45
className = "space-y-4"
46
- keyboardShouldPersistTaps = "handled"
47
46
contentContainerStyle = { { minHeight : "100%" , paddingBottom : 400 } }
48
47
showsVerticalScrollIndicator = { false }
48
+ keyboardShouldPersistTaps = "handled"
49
+ keyboardDismissMode = "interactive"
49
50
>
50
51
< ElementForm error = { error ?. data } element = { data } onUpdate = { mutate } isLoading = { updateLoading } />
51
52
</ ScrollView >
Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ export default function CreateElement() {
23
23
return (
24
24
< ModalView title = "Create element" >
25
25
< ScrollView
26
+ showsVerticalScrollIndicator = { false }
26
27
keyboardShouldPersistTaps = "handled"
28
+ keyboardDismissMode = "interactive"
27
29
contentContainerStyle = { { paddingBottom : 100 } }
28
- showsVerticalScrollIndicator = { false }
29
30
>
30
31
< ElementForm error = { error ?. data } isLoading = { isLoading } onCreate = { mutate } />
31
32
</ ScrollView >
Original file line number Diff line number Diff line change @@ -45,9 +45,10 @@ export default function SelectElement() {
45
45
onChangeText = { setSearch }
46
46
/>
47
47
< ScrollView
48
- keyboardShouldPersistTaps = "handled"
49
48
contentContainerStyle = { { paddingBottom : 100 } }
50
49
showsVerticalScrollIndicator = { false }
50
+ keyboardShouldPersistTaps = "handled"
51
+ keyboardDismissMode = "interactive"
51
52
>
52
53
< View className = "space-y-1 pt-2" >
53
54
{ me && isLoading ? (
Original file line number Diff line number Diff line change @@ -19,7 +19,12 @@ export default function RepeatSelect() {
19
19
20
20
return (
21
21
< ModalView title = "What period?" >
22
- < ScrollView className = "flex-1 pt-2" >
22
+ < ScrollView
23
+ className = "flex-1 pt-2"
24
+ showsVerticalScrollIndicator = { false }
25
+ keyboardShouldPersistTaps = "handled"
26
+ keyboardDismissMode = "interactive"
27
+ >
23
28
{ Object . entries ( TaskRepeatOptions ) . map ( ( [ key , value ] ) => (
24
29
< TouchableOpacity
25
30
key = { key }
Original file line number Diff line number Diff line change @@ -43,9 +43,10 @@ function EditHabitForm({ habit }: { habit: Habit }) {
43
43
return (
44
44
< KeyboardAvoidingView behavior = "padding" enabled keyboardVerticalOffset = { 100 } >
45
45
< ScrollView
46
- keyboardShouldPersistTaps = "handled"
47
46
contentContainerStyle = { { minHeight : "100%" , paddingBottom : 100 } }
48
47
showsVerticalScrollIndicator = { false }
48
+ keyboardShouldPersistTaps = "handled"
49
+ keyboardDismissMode = "interactive"
49
50
>
50
51
< HabitForm
51
52
error = { updateHabit . error ?. data }
Original file line number Diff line number Diff line change @@ -41,9 +41,10 @@ export default function HabitStat() {
41
41
/>
42
42
</ View >
43
43
< ScrollView
44
- keyboardShouldPersistTaps = "handled"
45
44
contentContainerStyle = { { flexGrow : 1 , paddingBottom : 200 } }
46
45
showsVerticalScrollIndicator = { false }
46
+ keyboardShouldPersistTaps = "handled"
47
+ keyboardDismissMode = "interactive"
47
48
>
48
49
{ isLoading && ! data ? (
49
50
< View className = "flex items-center justify-center pt-4" >
Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ export default function Account() {
78
78
< ScrollView
79
79
className = "space-y-2 pt-4"
80
80
showsVerticalScrollIndicator = { false }
81
+ keyboardShouldPersistTaps = "handled"
82
+ keyboardDismissMode = "interactive"
81
83
contentContainerStyle = { { paddingBottom : 400 } }
82
84
>
83
85
< View className = "flex w-full items-center justify-center pt-2" >
Original file line number Diff line number Diff line change @@ -52,7 +52,12 @@ export default function Profile() {
52
52
53
53
return (
54
54
< SafeAreaView className = "flex-1 px-4 pt-2" >
55
- < ScrollView className = "flex-1 space-y-6" >
55
+ < ScrollView
56
+ className = "flex-1 space-y-6"
57
+ showsVerticalScrollIndicator = { false }
58
+ keyboardShouldPersistTaps = "handled"
59
+ keyboardDismissMode = "interactive"
60
+ >
56
61
< View className = "flex flex-row items-center space-x-4 p-2" >
57
62
{ me ?. avatar ? (
58
63
< OptimizedImage
Original file line number Diff line number Diff line change @@ -12,7 +12,12 @@ export default function Plan() {
12
12
const discountedPlanAmount = data ?. subscription ?. discountPercent ? 4 - ( 4 * 100 ) / data . subscription . discountPercent : null
13
13
return (
14
14
< ScreenView title = "Plan" >
15
- < ScrollView contentContainerStyle = { { paddingBottom : 200 } } >
15
+ < ScrollView
16
+ showsVerticalScrollIndicator = { false }
17
+ keyboardShouldPersistTaps = "handled"
18
+ keyboardDismissMode = "interactive"
19
+ contentContainerStyle = { { paddingBottom : 200 } }
20
+ >
16
21
{ isLoading ? (
17
22
< View className = "flex w-full items-center justify-center pt-4" >
18
23
< ActivityIndicator />
Original file line number Diff line number Diff line change @@ -32,7 +32,12 @@ export function SettingsScreen() {
32
32
if ( ! me ) return null
33
33
return (
34
34
< ScreenView title = "Settings" >
35
- < ScrollView contentContainerStyle = { { flexGrow : 1 } } showsVerticalScrollIndicator = { false } >
35
+ < ScrollView
36
+ contentContainerStyle = { { flexGrow : 1 } }
37
+ showsVerticalScrollIndicator = { false }
38
+ keyboardShouldPersistTaps = "handled"
39
+ keyboardDismissMode = "interactive"
40
+ >
36
41
< View className = "pb-8" >
37
42
< Button leftIcon = { < Icon icon = { AlertCircle } size = { 16 } /> } variant = "ghost" onPress = { deleteAccountModalProps . onOpen } >
38
43
Delete account
Original file line number Diff line number Diff line change @@ -13,7 +13,12 @@ interface Props {
13
13
export function LoginPlaceholder ( props : Props ) {
14
14
const router = useRouter ( )
15
15
return (
16
- < ScrollView contentContainerStyle = { { flexGrow : 1 } } >
16
+ < ScrollView
17
+ contentContainerStyle = { { flexGrow : 1 } }
18
+ showsVerticalScrollIndicator = { false }
19
+ keyboardShouldPersistTaps = "handled"
20
+ keyboardDismissMode = "interactive"
21
+ >
17
22
< View className = "space-y-4" >
18
23
< View className = "space-y-6" >
19
24
< Text className = "text-lg" > { props . text } </ Text >
Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ export function TaskForm(props: Props) {
135
135
contentContainerStyle = { { paddingBottom : 80 } }
136
136
className = "px-4"
137
137
contentInsetAdjustmentBehavior = "always"
138
+ keyboardDismissMode = "interactive"
138
139
keyboardShouldPersistTaps = "handled"
139
140
showsVerticalScrollIndicator = { false }
140
141
>
You can’t perform that action at this time.
0 commit comments