File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ type Props = {
8
8
text : string ,
9
9
order : number ,
10
10
imageSource : string ,
11
+ extraComponent : React$Element ,
11
12
_copilot : CopilotContext ,
12
13
children : React$Element
13
14
} ;
@@ -19,6 +20,7 @@ class ConnectedCopilotStep extends Component<Props> {
19
20
text : this . props . text ,
20
21
order : this . props . order ,
21
22
imageSource : this . props . imageSource ,
23
+ extraComponent : this . props . extraComponent ,
22
24
target : this ,
23
25
wrapper : this . wrapper ,
24
26
} ) ;
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ const Tooltip = ({
27
27
} : Props ) => {
28
28
return (
29
29
< View >
30
+ < View style = { styles . extraComponentContainer } >
31
+ { currentStep . extraComponent }
32
+ </ View >
30
33
< View style = { styles . imageContainer } >
31
34
< Image style = { { flex : 1 } } source = { currentStep . imageSource } />
32
35
</ View >
Original file line number Diff line number Diff line change @@ -32,6 +32,11 @@ export default StyleSheet.create({
32
32
} ,
33
33
tooltipText : {
34
34
35
+ } ,
36
+ extraComponentContainer : {
37
+ flex : 1 ,
38
+ justifyContent : 'center' ,
39
+ alignItems : 'center' ,
35
40
} ,
36
41
imageContainer : {
37
42
flex : 1 ,
You can’t perform that action at this time.
0 commit comments