Skip to content

Commit bd7e492

Browse files
committed
fix: handling of focusable, fixes #1117
1 parent 3c7dafa commit bd7e492

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/elements/Svg.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export default class Svg extends Shape<
114114
color,
115115
width,
116116
height,
117+
focusable,
117118

118119
// Inherited G properties
119120
font,
@@ -162,6 +163,7 @@ export default class Svg extends Shape<
162163
onLayout={onLayout}
163164
ref={this.refMethod}
164165
style={[styles.svg, style, opacityStyle, dimensions]}
166+
focusable={Boolean(focusable) && focusable !== 'false'}
165167
{...extractResponder(props, this as ResponderInstanceProps)}
166168
{...extractViewBox({ viewBox, preserveAspectRatio })}
167169
>

0 commit comments

Comments
 (0)