From 289b1e2ccb064f444943a671c643baaf0c5960f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eren=20Yenig=C3=BCl?= Date: Wed, 21 Sep 2022 02:05:59 +0300 Subject: [PATCH] fix: issue #6 --- ReactNativeSVGContext.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ReactNativeSVGContext.js b/ReactNativeSVGContext.js index 2ddff7e..fd56533 100644 --- a/ReactNativeSVGContext.js +++ b/ReactNativeSVGContext.js @@ -1,5 +1,4 @@ import React from 'react'; -import { Vex } from 'vexflow/src/vex'; import { SVGContext } from 'vexflow/src/svgcontext'; import { StaveNote } from 'vexflow/src/stavenote'; import Svg, { Path, Rect, G } from 'react-native-svg'; @@ -66,8 +65,7 @@ export class ReactNativeSVGContext extends SVGContext { } fillText(text, x, y) { - const attributes = {}; - Vex.Merge(attributes, this.attributes); + const attributes = { ...this.attributes}; const path = this.create('path'); const fontSize = this.getFontSize(); @@ -133,4 +131,4 @@ export class ReactNativeSVGContext extends SVGContext { } iePolyfill() {} -} \ No newline at end of file +}