From a888a97918029cfbb46a153ee981bb597cf00d4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my?= Date: Wed, 20 Jul 2022 08:30:34 +0200 Subject: [PATCH] Add color to text and remove no existing dependence --- ReactNativeSVGContext.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ReactNativeSVGContext.js b/ReactNativeSVGContext.js index 2ddff7e..e365c38 100644 --- a/ReactNativeSVGContext.js +++ b/ReactNativeSVGContext.js @@ -67,15 +67,13 @@ export class ReactNativeSVGContext extends SVGContext { fillText(text, x, y) { const attributes = {}; - Vex.Merge(attributes, this.attributes); - const path = this.create('path'); const fontSize = this.getFontSize(); const font = this.fontPack.getFont(attributes); const pathData = font.getPath(text, x, y, fontSize).toPathData(); attributes.d = pathData; - attributes.stroke = "none"; + attributes.stroke = "black"; attributes.x = x; attributes.y = y;