Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/features/ai-edit/ai-edit-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
Keyboard,
KeyboardAvoidingView,
Modal,
Platform,
Pressable,
ScrollView,
StyleSheet,
Expand Down Expand Up @@ -162,7 +161,7 @@ export function AiEditScreen({ draftId, onClose, onResult }: Props) {
<KeyboardAvoidingView
key={fontScale}
style={[styles.root, { backgroundColor: theme.background, paddingTop: insets.top }]}
behavior={Platform.OS === 'ios' ? 'padding' : undefined}>
behavior="padding">
<ScrollView
ref={details}
style={styles.root}
Expand Down
3 changes: 1 addition & 2 deletions src/features/editor/description-sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
Keyboard,
KeyboardAvoidingView,
Modal,
Platform,
ScrollView,
StyleSheet,
Text,
Expand Down Expand Up @@ -69,7 +68,7 @@ export function DescriptionSheet({
onShow={() => input.current?.focus()}
onRequestClose={cancel}>
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
behavior="padding"
style={[styles.overlay, { paddingTop: insets.top }]}
accessibilityViewIsModal
onAccessibilityEscape={cancel}>
Expand Down
3 changes: 1 addition & 2 deletions src/features/editor/editor-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import {
AccessibilityInfo,
Dimensions,
KeyboardAvoidingView,
Platform,
Pressable,
StyleSheet,
Text,
Expand Down Expand Up @@ -1373,7 +1372,7 @@ export function EditorScreen({
{/* Typing a caption lifts the strip and the text bar above the keyboard (the preview gives
up the room). */}
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
behavior="padding"
enabled={descriptionForm === null}
style={[styles.root, { paddingTop: insets.top, backgroundColor: theme.background }]}>
{!voiceoverMode && !typing && description !== undefined && (
Expand Down
3 changes: 1 addition & 2 deletions src/features/export/export-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import {
ActivityIndicator,
BackHandler,
KeyboardAvoidingView,
Platform,
Pressable,
ScrollView,
StyleSheet,
Expand Down Expand Up @@ -481,7 +480,7 @@ export function ExportScreen({

return (
<KeyboardAvoidingView
behavior={Platform.OS === 'ios' ? 'padding' : undefined}
behavior="padding"
style={[
styles.fill,
{ backgroundColor: theme.groupedBackground, paddingTop: insets.top + Spacing.two },
Expand Down
5 changes: 1 addition & 4 deletions src/features/project-summary/new-project-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useEffect, useRef, useState } from 'react';
import {
BackHandler,
KeyboardAvoidingView,
Platform,
Pressable,
ScrollView,
StyleSheet,
Expand Down Expand Up @@ -155,9 +154,7 @@ export function NewProjectScreen({ onClose, onBlankProject, onCreated, onOpenSum

return (
<ThemedView type="groupedBackground" style={styles.fill}>
<KeyboardAvoidingView
style={styles.fill}
behavior={Platform.OS === 'ios' ? 'padding' : undefined}>
<KeyboardAvoidingView style={styles.fill} behavior="padding">
<View style={[styles.header, { paddingTop: insets.top + Spacing.two }]}>
<ThemedText type="headline">New project</ThemedText>
<Pressable
Expand Down
Loading