Skip to content

Commit 4d0c136

Browse files
authored
Merge pull request #31 from RonasIT/PRD-2132-keyboard-controllers-refactoring
PRD-2132: Replace @pietile-native-kit/keyboard-aware-scrollview with react-native-keyboard-controller
2 parents 8352092 + ae300f0 commit 4d0c136

6 files changed

Lines changed: 3 additions & 86 deletions

File tree

apps/mobile/app/(auth)/sign-in.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default function SignInScreen(): ReactElement {
1212
const isOfflineMode = useSelector(appState$.isOfflineMode);
1313

1414
return (
15-
<ScreenWrapper isKeyboardAvoiding>
15+
<ScreenWrapper isKeyboardAvoiding safeAreaProps={{ edges: ['top'] }}>
1616
<NoConnectionBanner isVisible={isOfflineMode} />
1717
<SignIn onSuccess={resetToCreateChatScreen} />
1818
</ScreenWrapper>

apps/mobile/app/(main)/chat/create.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function CreateChatScreen(): ReactElement {
4646
className: 'pt-0',
4747
header: <AppHeader title={translate('TEXT_NEW_CHAT')} onGoBack={handleBackPress} />,
4848
}}
49-
safeAreaProps={{ edges: ['bottom'] }}
49+
safeAreaProps={{ edges: [] }}
5050
keyBoardAvoidingProps={{ enabled: !isBottomSheetInputFocused }}>
5151
<NoConnectionBanner isVisible={isOfflineMode} />
5252
<CreateChat

libs/mobile/shared/ui/keyboard-avoiding-view/src/lib/component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { KeyboardAwareScrollView } from '@pietile-native-kit/keyboard-aware-scrollview';
21
import { ComponentType } from 'react';
32
import { ScrollViewProps, StyleProp, ViewStyle } from 'react-native';
3+
import { KeyboardAwareScrollView } from 'react-native-keyboard-controller';
44
import { commonStyle } from '@open-webui-react-native/mobile/shared/ui/styles';
55

66
export type AppKeyboardAvoidingViewProps = Omit<ScrollViewProps, 'onFocus'> & {

package-lock.json

Lines changed: 0 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"@legendapp/state": "^3.0.0-beta.31",
1919
"@likashefqet/react-native-image-zoom": "^4.3.0",
2020
"@lukemorales/query-key-factory": "^1.3.4",
21-
"@pietile-native-kit/keyboard-aware-scrollview": "^1.5.0",
2221
"@pusher/pusher-websocket-react-native": "^1.3.1",
2322
"@react-native-community/hooks": "^100.1.0",
2423
"@react-native-cookies/cookies": "^6.2.1",

patches/@pietile-native-kit+keyboard-aware-scrollview+1.5.0.patch

Lines changed: 0 additions & 71 deletions
This file was deleted.

0 commit comments

Comments
 (0)