fix: handling of focusable, fixes #1117

This commit is contained in:
Mikael Sand
2019-09-27 11:56:13 +03:00
parent 3c7dafad37
commit bd7e492910

View File

@@ -114,6 +114,7 @@ export default class Svg extends Shape<
color,
width,
height,
focusable,
// Inherited G properties
font,
@@ -162,6 +163,7 @@ export default class Svg extends Shape<
onLayout={onLayout}
ref={this.refMethod}
style={[styles.svg, style, opacityStyle, dimensions]}
focusable={Boolean(focusable) && focusable !== 'false'}
{...extractResponder(props, this as ResponderInstanceProps)}
{...extractViewBox({ viewBox, preserveAspectRatio })}
>