Skip to content

Commit f638b80

Browse files
committed
fix: CI fixes
1 parent 9646aad commit f638b80

10 files changed

Lines changed: 13 additions & 11 deletions

File tree

FabricExample/src/navigation/ExamplesStack/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import React from "react";
44
import { ScreenNames } from "../../constants/screenNames";
55
import AwareScrollView from "../../screens/Examples/AwareScrollView";
66
import AwareScrollViewStickyFooter from "../../screens/Examples/AwareScrollViewStickyFooter";
7-
import KeyboardChatScrollViewPlayground from "../../screens/Examples/KeyboardChatScrollView";
87
import CloseScreen from "../../screens/Examples/Close";
98
import EnabledDisabled from "../../screens/Examples/EnabledDisabled";
109
import Events from "../../screens/Examples/Events";
@@ -14,6 +13,7 @@ import InteractiveKeyboard from "../../screens/Examples/InteractiveKeyboard";
1413
import InteractiveKeyboardIOS from "../../screens/Examples/InteractiveKeyboardIOS";
1514
import KeyboardAnimation from "../../screens/Examples/KeyboardAnimation";
1615
import KeyboardAvoidingViewExample from "../../screens/Examples/KeyboardAvoidingView";
16+
import KeyboardChatScrollViewPlayground from "../../screens/Examples/KeyboardChatScrollView";
1717
import KeyboardExtender from "../../screens/Examples/KeyboardExtender";
1818
import KeyboardSharedTransitionExample from "../../screens/Examples/KeyboardSharedTransitions";
1919
import UseKeyboardState from "../../screens/Examples/KeyboardStateHook";

FabricExample/src/screens/Examples/KeyboardChatScrollView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function KeyboardChatScrollViewPlayground() {
4343
const textInputRef = useRef<TextInput>(null);
4444
const textRef = useRef("");
4545
const [inputHeight, setInputHeight] = useState(TEXT_INPUT_HEIGHT);
46-
const { inverted, messages, reversedMessages, addMessage, mode, freeze } =
46+
const { inverted, messages, reversedMessages, addMessage, mode } =
4747
useChatConfigStore();
4848
const { bottom } = useSafeAreaInsets();
4949

docs/docs/api/components/keyboard-chat-scroll-view.mdx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
# KeyboardChatScrollView
22

3-
`KeyboardChatScrollView` is a purpose-built component for chat application layouts. It handles keyboard appearance, interactive dismissal, and content repositioning with smooth 60/120 FPS animations — all the keyboard behaviors that chat apps need but general-purpose components struggle to deliver.
3+
`KeyboardChatScrollView` is a purpose-built component for chat application layouts. It handles keyboard appearance, interactive dismissal, and content repositioning with smooth 60/120 FPS animations — all the keyboard behaviors that chat apps need, but general-purpose components **_struggle_** to deliver.
44

55
import Video from "@site/src/components/Video";
66

7+
<Video src="/video/keyboard-chat-scroll-view/always.mov" width={35} />
8+
79
## Props
810

911
### [`ScrollView Props`](https://reactnative.dev/docs/scrollview#props)
@@ -45,25 +47,25 @@ Controls how the chat content responds when the keyboard appears. Defaults to `"
4547

4648
Content always lifts with the keyboard, keeping the bottom messages visible **regardless** of the current scroll position. This is the most common chat app behavior, used by **Telegram**, **WhatsApp**, and others.
4749

48-
<Video src="/video/chat-kit/always.mov" width={25} />
50+
<Video src="/video/keyboard-chat-scroll-view/always.mov" width={25} />
4951

5052
#### `whenAtEnd`
5153

5254
Content lifts only when the scroll view is **at the end** (i.e., the last message is visible or near the bottom). If the user has scrolled up to read older messages, the keyboard won't push the content around. This matches the **ChatGPT** mobile app behavior.
5355

54-
<Video src="/video/chat-kit/when-at-end.mov" width={25} />
56+
<Video src="/video/keyboard-chat-scroll-view/when-at-end.mov" width={25} />
5557

5658
#### `persistent`
5759

5860
Content lifts when the keyboard appears, but **does not drop back** when the keyboard hides. The scroll position stays where it was pushed to. This matches the **Claude** mobile app behavior.
5961

60-
<Video src="/video/chat-kit/persistent.mp4" width={25} />
62+
<Video src="/video/keyboard-chat-scroll-view/persistent.mp4" width={25} />
6163

6264
#### `never`
6365

6466
Content never moves in response to the keyboard. The keyboard simply overlaps the chat. This matches the **Perplexity** app behavior.
6567

66-
<Video src="/video/chat-kit/never.mov" width={25} />
68+
<Video src="/video/keyboard-chat-scroll-view/never.mov" width={25} />
6769

6870
### `offset`
6971

@@ -135,7 +137,7 @@ const memoList = useCallback(
135137
## Example
136138

137139
<div
138-
data-snack-id="@kirylziusko/chatkit"
140+
data-snack-id="@kirylziusko/c0b7f0"
139141
data-snack-platform="ios"
140142
data-snack-preview="true"
141143
data-snack-theme="light"

docs/docs/guides/building-chat-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ Implementing all of this from scratch is a significant undertaking. That's why w
4949

5050
## API reference
5151

52-
For the full list of props and usage examples, see the [`KeyboardChatScrollView` API reference](../api/components/chat-kit).
52+
For the full list of props and usage examples, see the [`KeyboardChatScrollView` API reference](../api/components/keyboard-chat-scroll-view).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

example/src/navigation/ExamplesStack/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import React from "react";
44
import { ScreenNames } from "../../constants/screenNames";
55
import AwareScrollView from "../../screens/Examples/AwareScrollView";
66
import AwareScrollViewStickyFooter from "../../screens/Examples/AwareScrollViewStickyFooter";
7-
import KeyboardChatScrollViewPlayground from "../../screens/Examples/KeyboardChatScrollView";
87
import CloseScreen from "../../screens/Examples/Close";
98
import EnabledDisabled from "../../screens/Examples/EnabledDisabled";
109
import Events from "../../screens/Examples/Events";
@@ -14,6 +13,7 @@ import InteractiveKeyboard from "../../screens/Examples/InteractiveKeyboard";
1413
import InteractiveKeyboardIOS from "../../screens/Examples/InteractiveKeyboardIOS";
1514
import KeyboardAnimation from "../../screens/Examples/KeyboardAnimation";
1615
import KeyboardAvoidingViewExample from "../../screens/Examples/KeyboardAvoidingView";
16+
import KeyboardChatScrollViewPlayground from "../../screens/Examples/KeyboardChatScrollView";
1717
import KeyboardExtender from "../../screens/Examples/KeyboardExtender";
1818
import KeyboardSharedTransitionExample from "../../screens/Examples/KeyboardSharedTransitions";
1919
import UseKeyboardState from "../../screens/Examples/KeyboardStateHook";

example/src/screens/Examples/KeyboardChatScrollView/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function KeyboardChatScrollViewPlayground() {
4343
const textInputRef = useRef<TextInput>(null);
4444
const textRef = useRef("");
4545
const [inputHeight, setInputHeight] = useState(TEXT_INPUT_HEIGHT);
46-
const { inverted, messages, reversedMessages, addMessage, mode, freeze } =
46+
const { inverted, messages, reversedMessages, addMessage, mode } =
4747
useChatConfigStore();
4848
const { bottom } = useSafeAreaInsets();
4949

0 commit comments

Comments
 (0)