File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ export interface HintProps {
110
110
* Callback for Hint press
111
111
*/
112
112
onPress ?: ( ) => void ;
113
- /**
114
- * Callback for the background press
115
- */
113
+ /**
114
+ * Callback for the background press
115
+ */
116
116
onBackgroundPress ?: ( event : GestureResponderEvent ) => void ;
117
117
/**
118
118
* The hint container width
@@ -217,8 +217,8 @@ class Hint extends Component<HintProps, HintState> {
217
217
if ( ! _ . isEqual ( this . state . targetLayout , layout ) ) {
218
218
this . setState ( { targetLayout : layout } ) ;
219
219
}
220
-
221
- if ( ! this . state . targetLayoutInWindow ) {
220
+
221
+ if ( ! this . state . targetLayoutInWindow || this . props . onBackgroundPress ) {
222
222
setTimeout ( ( ) => {
223
223
this . targetRef ?. measureInWindow ( ( x : number , y : number , width : number , height : number ) => {
224
224
const targetLayoutInWindow = { x, y, width, height} ;
You can’t perform that action at this time.
0 commit comments