Skip to content

Commit

Permalink
fix: handling of focusable, fixes #1117
Browse files Browse the repository at this point in the history
  • Loading branch information
msand committed Sep 27, 2019
1 parent 3c7dafa commit bd7e492
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/elements/Svg.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export default class Svg extends Shape<
color,
width,
height,
focusable,

// Inherited G properties
font,
Expand Down Expand Up @@ -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 })}
>
Expand Down

0 comments on commit bd7e492

Please sign in to comment.