@@ -3,7 +3,6 @@ import React, {Component} from 'react';
3
3
import { Alert } from 'react-native' ;
4
4
import { Colors , View , Text , Hint , Button , RadioGroup , RadioButton , Switch } from 'react-native-ui-lib' ;
5
5
6
-
7
6
const settingsIcon = require ( '../../assets/icons/settings.png' ) ;
8
7
const reactions = [ '❤️' , '😮' , '😔' , '😂' , '😡' ] ;
9
8
@@ -18,7 +17,7 @@ type HintScreenState = {
18
17
useSideTip ?: boolean ;
19
18
showCustomContent ?: boolean ;
20
19
showReactionStrip ?: boolean ;
21
- enableShadow ?: boolean
20
+ enableShadow ?: boolean ;
22
21
} ;
23
22
24
23
export default class HintsScreen extends Component < HintScreenProps , HintScreenState > {
@@ -47,11 +46,11 @@ export default class HintsScreen extends Component<HintScreenProps, HintScreenSt
47
46
48
47
onHintPressed = ( ) => {
49
48
Alert . alert ( 'Hint Pressed' ) ;
50
- }
49
+ } ;
51
50
52
51
onReactionPress = ( ) => {
53
52
Alert . alert ( 'Reaction button pressed' ) ;
54
- }
53
+ } ;
55
54
56
55
renderCustomContent ( ) {
57
56
return (
@@ -89,9 +88,9 @@ export default class HintsScreen extends Component<HintScreenProps, HintScreenSt
89
88
enableShadow
90
89
} = this . state ;
91
90
const targetFrame = { x : 140 , y : 100 , width : 10 , height : 10 } ;
92
- const message = useShortMessage ?
93
- 'Add other cool and useful stuff.' :
94
- 'Add other cool and useful stuff through adding apps to your visitors to enjoy.' ;
91
+ const message = useShortMessage
92
+ ? 'Add other cool and useful stuff.'
93
+ : 'Add other cool and useful stuff through adding apps to your visitors to enjoy.' ;
95
94
96
95
return (
97
96
< View flex >
@@ -129,8 +128,11 @@ export default class HintsScreen extends Component<HintScreenProps, HintScreenSt
129
128
// edgeMargins={30}
130
129
// onBackgroundPress={() => this.setState({showHint: !showHint})}
131
130
customContent = {
132
- showCustomContent ?
133
- this . renderCustomContent ( ) : showReactionStrip ? this . renderReactionStrip ( ) : undefined
131
+ showCustomContent
132
+ ? this . renderCustomContent ( )
133
+ : showReactionStrip
134
+ ? this . renderReactionStrip ( )
135
+ : undefined
134
136
}
135
137
color = { ! showCustomContent && showReactionStrip ? Colors . white : undefined }
136
138
removePaddings = { ! showCustomContent && showReactionStrip }
@@ -220,8 +222,8 @@ export default class HintsScreen extends Component<HintScreenProps, HintScreenSt
220
222
</ View >
221
223
222
224
< View row centerV marginV-10 >
223
- < Switch
224
- value = { showReactionStrip }
225
+ < Switch
226
+ value = { showReactionStrip }
225
227
onValueChange = { value => this . setState ( { showReactionStrip : value , enableShadow : true } ) }
226
228
/>
227
229
< Text marginL-10 > Show reaction strip</ Text >
0 commit comments