Skip to content

Commit 451d730

Browse files
committed
feat: push progress further
1 parent a615a9a commit 451d730

3 files changed

Lines changed: 21 additions & 2 deletions

File tree

  • FabricExample/src/screens/Examples/KeyboardChatScrollView
  • example/src/screens/Examples/KeyboardChatScrollView

FabricExample/src/screens/Examples/KeyboardChatScrollView/data.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ export const messages = [
1515
text: "It's pretty cool. We were able to built gallery with share element transitions without any flickering or any other issues",
1616
sender: true,
1717
},
18+
{
19+
text: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n1111222223333\n\n\n\n\n\n\n\n\n\n",
20+
sender: false,
21+
},
22+
{ text: "1", sender: false },
23+
{ text: "2", sender: false },
24+
{ text: "3", sender: false },
25+
{ text: "\n\n\n\n\n\n\n\n1118889993330002\n\n\n\n\n", sender: false },
1826
{ text: "So far it looks cool!", sender: true },
1927
{ text: "And seems to be pretty stable", sender: true },
2028
{

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import styles, {
3434
MARGIN,
3535
TEXT_INPUT_HEIGHT,
3636
contentContainerStyle,
37+
invertedContentContainerStyle,
3738
} from "./styles";
3839
import VirtualizedListScrollView, {
3940
type VirtualizedListScrollViewRef,
@@ -117,8 +118,10 @@ function KeyboardChatScrollViewPlayground() {
117118
)}
118119
{mode === "flash" && (
119120
<FlashList
120-
contentContainerStyle={contentContainerStyle}
121-
data={messages}
121+
contentContainerStyle={
122+
inverted ? invertedContentContainerStyle : contentContainerStyle
123+
}
124+
data={inverted ? reversedMessages : messages}
122125
inverted={inverted}
123126
keyExtractor={(item) => item.text}
124127
maintainVisibleContentPosition={{

example/src/screens/Examples/KeyboardChatScrollView/data.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ export const messages = [
1515
text: "It's pretty cool. We were able to built gallery with share element transitions without any flickering or any other issues",
1616
sender: true,
1717
},
18+
{
19+
text: "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n1111222223333\n\n\n\n\n\n\n\n\n\n",
20+
sender: false,
21+
},
22+
{ text: "1", sender: false },
23+
{ text: "2", sender: false },
24+
{ text: "3", sender: false },
25+
{ text: "\n\n\n\n\n\n\n\n1118889993330002\n\n\n\n\n", sender: false },
1826
{ text: "So far it looks cool!", sender: true },
1927
{ text: "And seems to be pretty stable", sender: true },
2028
{

0 commit comments

Comments
 (0)