File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
demo/src/screens/componentScreens Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,15 @@ const TimelineScreen = () => {
24
24
setExpand ( ! expand ) ;
25
25
} , [ expand ] ) ;
26
26
27
+ const renderExtraContent = ( ) => {
28
+ return (
29
+ < View style = { { flex : 1 , marginTop : 10 , backgroundColor : Colors . grey70 } } >
30
+ < Text > Lorem Ipsum is simply dummy text of the printing and typesetting industry.
31
+ Lorem Ipsum is simply dummy text of the printing and typesetting industry</ Text >
32
+ </ View >
33
+ ) ;
34
+ } ;
35
+
27
36
const renderContent = ( index = 0 , anchorRef ?: any ) => {
28
37
return (
29
38
< Card padding-page >
@@ -32,8 +41,10 @@ const TimelineScreen = () => {
32
41
</ Text >
33
42
< View marginT-5 padding-8 bg-grey70 br30 >
34
43
< Text > { contents [ index ] } </ Text >
35
- < Button marginT-10 size = { 'small' } label = { ! expand ? 'Expand' : 'Close' } onPress = { onPressExpand } />
36
- { expand && < View style = { { height : 100 , marginTop : 10 , backgroundColor : 'red' } } /> }
44
+ < View right >
45
+ < Button marginT-10 link size = { 'small' } label = { ! expand ? 'More info' : 'Close' } onPress = { onPressExpand } />
46
+ </ View >
47
+ { expand && renderExtraContent ( ) }
37
48
</ View >
38
49
</ Card >
39
50
) ;
You can’t perform that action at this time.
0 commit comments