File tree Expand file tree Collapse file tree
FabricExample/src/screens/Examples/KeyboardChatScrollView
example/src/screens/Examples/KeyboardChatScrollView Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ import styles, {
3434 MARGIN ,
3535 TEXT_INPUT_HEIGHT ,
3636 contentContainerStyle ,
37+ invertedContentContainerStyle ,
3738} from "./styles" ;
3839import 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 = { {
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments